fix(Scripts/ZulGurub): Arlokk's Panthers should attack players. (#12185)

Fixes #12162
This commit is contained in:
UltraNix
2022-06-26 11:08:29 +02:00
committed by GitHub
parent 76e9e19f0c
commit bd07d875a7
@@ -351,7 +351,9 @@ public:
void SpellHit(Unit* caster, SpellInfo const* spell) override void SpellHit(Unit* caster, SpellInfo const* spell) override
{ {
if (spell->Id == SPELL_MARK_OF_ARLOKK_TRIGGER) // Should only hit if line of sight if (spell->Id == SPELL_MARK_OF_ARLOKK_TRIGGER) // Should only hit if line of sight
me->Attack(caster, true); {
AttackStart(caster);
}
} }
void JustDied(Unit* /*killer*/) override void JustDied(Unit* /*killer*/) override
@@ -380,7 +382,9 @@ public:
{ {
case EVENT_ATTACK: case EVENT_ATTACK:
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0.0f, 100, false)) if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0.0f, 100, false))
me->Attack(target, true); {
AttackStart(target);
}
break; break;
default: default:
break; break;