mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Scripts/ZulGurub): Arlokk's Panthers should attack players. (#12185)
Fixes #12162
This commit is contained in:
@@ -351,7 +351,9 @@ public:
|
||||
void SpellHit(Unit* caster, SpellInfo const* spell) override
|
||||
{
|
||||
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
|
||||
@@ -380,7 +382,9 @@ public:
|
||||
{
|
||||
case EVENT_ATTACK:
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0.0f, 100, false))
|
||||
me->Attack(target, true);
|
||||
{
|
||||
AttackStart(target);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user