mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 08:28:57 +01:00
Scripts/BRC: to not trigger Obsidius' transformation when the incomming damage is higher than Obsidius' total life (oneshot cases)
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user