mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
fix(Scripts/ZulDrak): Fix Ghymer not being healed by storm clouds (#22302)
This commit is contained in:
@@ -819,54 +819,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
enum StormCloud
|
||||
{
|
||||
STORM_COULD = 29939,
|
||||
HEALING_WINDS = 55549,
|
||||
STORM_VISUAL = 55708,
|
||||
GYMERS_GRAB = 55516,
|
||||
RIDE_VEHICLE = 43671
|
||||
};
|
||||
|
||||
class npc_storm_cloud : public CreatureScript
|
||||
{
|
||||
public:
|
||||
npc_storm_cloud() : CreatureScript("npc_storm_cloud") { }
|
||||
|
||||
struct npc_storm_cloudAI : public ScriptedAI
|
||||
{
|
||||
npc_storm_cloudAI(Creature* creature) : ScriptedAI(creature) { }
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
me->CastSpell(me, STORM_VISUAL, true);
|
||||
}
|
||||
|
||||
void JustRespawned() override
|
||||
{
|
||||
Reset();
|
||||
}
|
||||
|
||||
void SpellHit(Unit* caster, SpellInfo const* spell) override
|
||||
{
|
||||
if (spell->Id != GYMERS_GRAB)
|
||||
return;
|
||||
|
||||
if (Vehicle* veh = caster->GetVehicleKit())
|
||||
if (veh->GetAvailableSeatCount() != 0)
|
||||
{
|
||||
me->CastSpell(caster, RIDE_VEHICLE, true);
|
||||
me->CastSpell(caster, HEALING_WINDS, true);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_storm_cloudAI(creature);
|
||||
}
|
||||
};
|
||||
|
||||
enum ScourgeDisguiseInstability
|
||||
{
|
||||
SCOURGE_DISGUISE_FAILING_MESSAGE_1 = 28552, // Scourge Disguise Failing! Find a safe place!
|
||||
@@ -922,7 +874,6 @@ void AddSC_zuldrak()
|
||||
new npc_released_offspring_harkoa();
|
||||
new npc_crusade_recruit();
|
||||
new go_scourge_enclosure();
|
||||
new npc_storm_cloud();
|
||||
|
||||
RegisterSpellScript(spell_scourge_disguise_instability);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user