Added a pet check to Cazic Touch

This commit is contained in:
ProducerZekServer
2021-05-19 10:17:34 +00:00
committed by RoTPvP
parent a59ffc6e6b
commit bd5567ebe2
+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()){