Removed Magic Numbers

This commit is contained in:
ProducerZekServer
2021-05-27 02:54:55 +00:00
committed by RoTPvP
parent 5da1261ffc
commit 727a2cc0cc
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -2045,9 +2045,9 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, ui
return false;
//Cazic Touch targets the pet owner instead of the pet when said pet is tanking.
if (RuleB(Spells,CazicTouchTargetsPetOwner) && spell_id == 982 && spell_target->HasOwner()) {
if ((RuleB(Spells, CazicTouchTargetsPetOwner) && spell_target->HasOwner()) && spell_id == DB_SPELL_CAZIC_TOUCH || spell_id == DB_SPELL_TOUCH_OF_VINITRAS) {
Mob* owner = spell_target->GetOwner();
if (owner)
spell_target = owner;
}