[Bug Fix] Touch Of Vinitras was ignoring pet DT rule (#2469)

This commit is contained in:
Aeadoin 2022-10-03 19:35:52 -04:00 committed by GitHub
parent 44f760d177
commit 267472fc91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2270,7 +2270,7 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, in
return false;
//Death Touch targets the pet owner instead of the pet when said pet is tanking.
if ((RuleB(Spells, CazicTouchTargetsPetOwner) && spell_target && spell_target->HasOwner()) && spell_id == SPELL_CAZIC_TOUCH || spell_id == SPELL_TOUCH_OF_VINITRAS) {
if ((RuleB(Spells, CazicTouchTargetsPetOwner) && spell_target && spell_target->HasOwner()) && (spell_id == SPELL_CAZIC_TOUCH || spell_id == SPELL_TOUCH_OF_VINITRAS)) {
Mob* owner = spell_target->GetOwner();
if (owner) {