Scripts/BRC: to not trigger Obsidius' transformation when the incomming damage is higher than Obsidius' total life (oneshot cases)

This commit is contained in:
Ovahlord
2018-10-26 21:45:24 +02:00
parent c7ea391fff
commit 344e07e826

View File

@@ -143,6 +143,9 @@ struct boss_ascendant_lord_obsidius : public BossAI
void DamageTaken(Unit* /*attacker*/, uint32& damage) override
{
if (damage >= me->GetHealth())
return;
if ((me->HealthBelowPctDamaged(69, damage) && _transformationCount == 0)
|| (me->HealthBelowPctDamaged(34, damage) && _transformationCount == 1))
{