mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-14 07:53:44 +00:00
fix(Scripts/ZulDrak): Fix Ghymer not being healed by storm clouds (#22302)
This commit is contained in:
@@ -2269,7 +2269,10 @@ class spell_q12619_emblazon_runeblade_effect : public SpellScript
|
||||
enum Quest_The_Storm_King
|
||||
{
|
||||
SPELL_RIDE_GYMER = 43671,
|
||||
SPELL_GRABBED = 55424
|
||||
SPELL_GRABBED = 55424,
|
||||
SPELL_HEALING_WINDS = 55549,
|
||||
|
||||
NPC_STORM_CLOUD = 29939
|
||||
};
|
||||
|
||||
class spell_q12919_gymers_grab : public SpellScript
|
||||
@@ -2284,10 +2287,14 @@ class spell_q12919_gymers_grab : public SpellScript
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
int8 seatId = 2;
|
||||
if (!GetHitCreature())
|
||||
return;
|
||||
GetHitCreature()->CastCustomSpell(SPELL_RIDE_GYMER, SPELLVALUE_BASE_POINT0, seatId, GetCaster(), true);
|
||||
GetHitCreature()->CastSpell(GetHitCreature(), SPELL_GRABBED, true);
|
||||
if (Creature* creature = GetHitCreature())
|
||||
{
|
||||
creature->CastCustomSpell(SPELL_RIDE_GYMER, SPELLVALUE_BASE_POINT0, seatId, GetCaster(), true);
|
||||
creature->CastSpell(creature, SPELL_GRABBED, true);
|
||||
|
||||
if (creature->GetEntry() == NPC_STORM_CLOUD)
|
||||
creature->CastSpell(GetCaster(), SPELL_HEALING_WINDS, true);
|
||||
}
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
Reference in New Issue
Block a user