diff options
author | Kudlaty <none@none> | 2009-11-29 19:51:07 +0100 |
---|---|---|
committer | Kudlaty <none@none> | 2009-11-29 19:51:07 +0100 |
commit | ca7a2e64176ed0345a0040982018a867479680fc (patch) | |
tree | b341361955145d90fd902ef37e3e95f73682abff | |
parent | 49fffe9da755f5f73422e44b25ab947bf16d0817 (diff) |
Fix crash in script for quest Trolls is gone crazy
--HG--
branch : trunk
-rw-r--r-- | sql/updates/6405_world.sql | 4 | ||||
-rw-r--r-- | src/bindings/scripts/scripts/northrend/zuldrak.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sql/updates/6405_world.sql b/sql/updates/6405_world.sql new file mode 100644 index 00000000000..cfafee3580e --- /dev/null +++ b/sql/updates/6405_world.sql @@ -0,0 +1,4 @@ +DELETE FROM `spell_script_target` WHERE `entry`=55083; +INSERT INTO `spell_script_target` (`entry`, `type`, `targetEntry`) VALUES +(55083, 1, 29700), +(55083, 1, 29686); diff --git a/src/bindings/scripts/scripts/northrend/zuldrak.cpp b/src/bindings/scripts/scripts/northrend/zuldrak.cpp index 28407adfc65..148e7fd5ac8 100644 --- a/src/bindings/scripts/scripts/northrend/zuldrak.cpp +++ b/src/bindings/scripts/scripts/northrend/zuldrak.cpp @@ -158,7 +158,7 @@ struct TRINITY_DLL_DECL npc_captured_rageclawAI : public ScriptedAI return; if (DespawnTimer <= uiDiff) - m_creature->setDeathState(JUST_DIED); + m_creature->DisappearAndDie(); else DespawnTimer -= uiDiff; } }; |