Код:
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index a22c816..1f11eb4 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -4539,6 +4539,20 @@ void Aura::HandleInvisibility(bool apply, bool Real)
target->SetVisibility(VISIBILITY_GROUP_NO_DETECT);
target->SetVisibility(VISIBILITY_GROUP_INVISIBILITY);
}
+
+ // cast Invisibility to elemental pet
+ if (GetId() == 32612) // Invisibility
+ {
+ if (Unit* caster = GetCaster())
+ {
+ if (Pet* pet = caster->GetPet())
+ {
+ pet->AttackStop();
+ pet->CastStop(pet->GetObjectGuid() == GetCasterGuid() ? GetId() : 0);
+ pet->CastSpell(pet, 32612, true);
+ }
+ }
+ }
}
else
{