fix(Scripts/TempleOfAhnQiraj): Fix Veklor hitbox (#13543)
* fix(Scripts/TempleOfAhnQiraj): Fix Veklor hitbox * Update boss_twinemperors.cpp
This commit is contained in:
parent
d5a7c2a86d
commit
be133a1d77
1 changed files with 14 additions and 4 deletions
|
|
@ -327,10 +327,7 @@ struct boss_veknilash : public boss_twinemperorsAI
|
|||
|
||||
struct boss_veklor : public boss_twinemperorsAI
|
||||
{
|
||||
boss_veklor(Creature* creature) : boss_twinemperorsAI(creature)
|
||||
{
|
||||
me->SetFloatValue(UNIT_FIELD_COMBATREACH, 45.f);
|
||||
}
|
||||
boss_veklor(Creature* creature) : boss_twinemperorsAI(creature) { }
|
||||
|
||||
bool IAmVeklor() override { return true; }
|
||||
|
||||
|
|
@ -391,6 +388,19 @@ struct boss_veklor : public boss_twinemperorsAI
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
void AttackStart(Unit* who) override
|
||||
{
|
||||
if (who && who->isTargetableForAttack() && me->GetReactState() != REACT_PASSIVE)
|
||||
{
|
||||
// VL doesn't melee
|
||||
if (me->Attack(who, false))
|
||||
{
|
||||
me->GetMotionMaster()->MoveChase(who, 45.0f, 0);
|
||||
me->AddThreat(who, 0.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
class at_twin_emperors : public OnlyOnceAreaTriggerScript
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue