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:
parent
f4bbbf4343
commit
87f76587d8
1 changed files with 8 additions and 0 deletions
|
|
@ -149,6 +149,14 @@ public:
|
|||
_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
|
||||
{
|
||||
if (action == ACTION_FINISH_RAGNAROS_INTRO)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue