mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
fix(Scripts/TempleOfAhnQiraj): Fix Veklor hitbox (#13543)
* fix(Scripts/TempleOfAhnQiraj): Fix Veklor hitbox * Update boss_twinemperors.cpp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user