mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Scripts/UtigardePinnacle: Prevent Ymiron from triggering a phase transition at death
...caused by the health percent multiplers used to check transitions
This commit is contained in:
@@ -204,7 +204,7 @@ public:
|
||||
|
||||
void DamageTaken(Unit* /*attacker*/, uint32& damage) override
|
||||
{
|
||||
if (me->HealthBelowPctDamaged(100 - HealthAmountMultipler * HealthAmountModifier, damage))
|
||||
if (me->HealthBelowPctDamaged(100 - HealthAmountMultipler * HealthAmountModifier, damage) && !(damage >= me->GetHealth()))
|
||||
{
|
||||
uint8 Order = HealthAmountModifier - 1;
|
||||
++HealthAmountModifier;
|
||||
|
||||
Reference in New Issue
Block a user