fix(Scripts/MoltenCore): Ragnaros dying while submerging (#10535)
* Fix(Core/MC): Ragnaros dying while submerging * Don't die on submerge * Update boss_ragnaros.cpp
This commit is contained in:
@@ -149,6 +149,14 @@ public:
|
|||||||
_lavaBurstGUIDS.clear();
|
_lavaBurstGUIDS.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DamageTaken(Unit* /*attacker*/, uint32& damage, DamageEffectType, SpellSchoolMask) override
|
||||||
|
{
|
||||||
|
if (events.IsInPhase(PHASE_SUBMERGED) && damage >= me->GetHealth())
|
||||||
|
{
|
||||||
|
damage = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void DoAction(int32 action) override
|
void DoAction(int32 action) override
|
||||||
{
|
{
|
||||||
if (action == ACTION_FINISH_RAGNAROS_INTRO)
|
if (action == ACTION_FINISH_RAGNAROS_INTRO)
|
||||||
|
|||||||
Reference in New Issue
Block a user