Added a pet check to Cazic Touch

This commit is contained in:
ProducerZekServer authored and RoTPvP committed 2021-05-19 03:23:33 -07:00
1 parent a59ffc6e6b
commit bd5567ebe2
1 file changed
+8
+8
View File
@@ -2044,6 +2044,14 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, ui
if(!IsValidSpell(spell_id))
return false;
//Cazic Touch targets the pet owner instead of the pet when said pet is tanking.
if (spell_id == 982 && spell_target->HasOwner()) {
Mob* owner = spell_target->GetOwner();
if (owner)
spell_target = owner;
}
if( spells[spell_id].zonetype == 1 && !zone->CanCastOutdoor()){
if(IsClient()){
if(!CastToClient()->GetGM()){