diff options
author | Kudlaty <none@none> | 2009-11-27 05:12:38 +0100 |
---|---|---|
committer | Kudlaty <none@none> | 2009-11-27 05:12:38 +0100 |
commit | 710a87128c927b18bba189e4459066275015e4ee (patch) | |
tree | 48890024d04093629bf651e10a8f60c757a9924a /src | |
parent | fef51c65bf8a3c243e9f8c92db1ab98c8c8238f8 (diff) |
Apply #391.
Fix typo and possible crash.
Patch by trazom.
In previous patch i forgot to mention about Azazel, sorry and thx for patch
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/scripts/scripts/eastern_kingdoms/stratholme/boss_nerubenkan.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/stratholme/boss_nerubenkan.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/stratholme/boss_nerubenkan.cpp index fba52e487e5..3a4ebe4cf97 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/stratholme/boss_nerubenkan.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/stratholme/boss_nerubenkan.cpp @@ -61,10 +61,11 @@ struct TRINITY_DLL_DECL boss_nerubenkanAI : public ScriptedAI pInstance->SetData(TYPE_NERUB,IN_PROGRESS); } - void RaiseUndeadScarab(Unit* victim) + void RaiseUndeadScarab(Unit* pVictim) { - if (Creature *UndeadScarab = DoSpawnCreature(10876, RAND(irand(0,-9),irand(0,9)), RAND(irand(0,-9),irand(0,9)), 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 180000)) - UndeadScarab->AI()->AttackStart(victim); + if (Creature* pUndeadScarab = DoSpawnCreature(10876, RAND(irand(-9,0),irand(0,9)), RAND(irand(-9,0),irand(0,9)), 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 180000)) + if (pUndeadScarab->AI()) + pUndeadScarab->AI()->AttackStart(pVictim); } void UpdateAI(const uint32 diff) |