Permalink
Browse files

Hai'shulud script updated.

Updated Hai'shulud to the correct database entry (#22038).
Fixed the targeting error that would not allow Hai'shulud to be sumoned.
  • Loading branch information...
Necrovoice committed Jun 17, 2018
1 parent 0811fc2 commit 7e414fce0f4cf4a72244afa8171d0bc2939b10eb
Showing with 8 additions and 2 deletions.
  1. +8 −2 scripts/world/spell_scripts.cpp
@@ -317,7 +317,7 @@ enum

// quest "The Big Bone Worm" 10930
SPELL_FUMPING = 39246,
SPELL_SUMMON_HAISHULUD = 39248,
SPELL_SUMMON_HAISHULUD = 22038,
NPC_SAND_GNOME = 22483,
NPC_MATURE_BONE_SIFTER = 22482,

@@ -939,7 +939,13 @@ struct spell_fumping : public SpellScript
switch (urand(0, 2))
{
case 0:
pCaster->CastSpell(pCreatureTarget, SPELL_SUMMON_HAISHULUD, true);
{
if (Creature* pHaishulud = pCaster->SummonCreature(SPELL_SUMMON_HAISHULUD, pCreatureTarget->GetPositionX(), pCreatureTarget->GetPositionY(), pCreatureTarget->GetPositionZ(), 0.0f, TEMPSUMMON_TIMED_OOC_DESPAWN, 30000))
{
pHaishulud->AI()->AttackStart(pCaster);
}
}
// pCaster->CastSpell(pCreatureTarget, SPELL_SUMMON_HAISHULUD, true); // TODO: Verify above code: Remove this line if everything checks out.
break;
case 1:
for (int i = 0; i < 2; ++i)

0 comments on commit 7e414fc

Please sign in to comment.