fix(Scripts/ZulDrak): Fix Ghymer not being healed by storm clouds (#22302)

This commit is contained in:
Andrew
2025-06-18 10:47:10 -03:00
committed by GitHub
parent 4d2fe013fd
commit d94fbb1609
3 changed files with 15 additions and 54 deletions

View File

@@ -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