mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
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();
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user