fix(Scripts/TempleOfAhnQiraj): Fix Veklor hitbox (#13543)

* fix(Scripts/TempleOfAhnQiraj): Fix Veklor hitbox

* Update boss_twinemperors.cpp
This commit is contained in:
Skjalf
2022-10-25 09:54:13 -03:00
committed by GitHub
parent d5a7c2a86d
commit be133a1d77

View File

@@ -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