diff options
| author | maximius <none@none> | 2009-10-16 16:08:19 -0700 |
|---|---|---|
| committer | maximius <none@none> | 2009-10-16 16:08:19 -0700 |
| commit | 1ef4ac98d1df9e7e3055428507618c8579dca0a3 (patch) | |
| tree | 9d1b80fdc8a69bcecf3b368e909d051d89e88b98 | |
| parent | 11ced634f4ec31f34c3a4396895842ac52a17550 (diff) | |
*Replace unimplemented, custom functions with standard ones...
--HG--
branch : trunk
| -rw-r--r-- | src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_amanitar.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_amanitar.cpp b/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_amanitar.cpp index d4eb0eaa694..4610df092e9 100644 --- a/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_amanitar.cpp +++ b/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_amanitar.cpp @@ -65,9 +65,9 @@ struct MANGOS_DLL_DECL boss_amanitarAI : public ScriptedAI void Reset() { - roottimer = RandTime(5,4); - bashtimer = RandTime(10,4); - bolttimer = RandTime(); + roottimer = urand(5000,9000); + bashtimer = urand(10000,14000); + bolttimer = urand(15000,30000); spawntimer = 0; m_creature->SetMeleeDamageSchool(SPELL_SCHOOL_NATURE); @@ -127,27 +127,27 @@ struct MANGOS_DLL_DECL boss_amanitarAI : public ScriptedAI if (spawntimer < diff) { SpawnAdds(); - spawntimer = RandTime(35,5); + spawntimer = urand(35000,40000); } else spawntimer -= diff; if (roottimer < diff) { Unit* target = SelectRandomPlayer(100.0f); if (target) m_creature->CastSpell(target, SPELL_ENTANGLING_ROOTS, false); - roottimer = RandTime(); + roottimer = urand(15000,30000); } if (bashtimer < diff) { m_creature->CastSpell(m_creature->getVictim(), SPELL_BASH, false); - bashtimer = RandTime(); + bashtimer = urand(15000,30000); } else bashtimer -= diff; if (bolttimer < diff) { Unit* target = SelectRandomPlayer(100.0f); if (target) m_creature->CastSpell(target, SPELL_VENOM_BOLT_VOLLEY, false); - bolttimer = RandTime(); + bolttimer = urand(15000,30000); } else bolttimer -= diff; DoMeleeAttackIfReady(); |
