diff options
author | click <click@gonnamakeyou.com> | 2011-06-30 21:39:25 +0200 |
---|---|---|
committer | click <click@gonnamakeyou.com> | 2011-06-30 21:39:25 +0200 |
commit | 21c562007341c0231dd2896bb618db7fe690690d (patch) | |
tree | 591dd80b5d1751a2066312a4c346c715cd0bb812 /src | |
parent | 97e6d34f49429edd23069e0b0ffb39d964f4e8ae (diff) |
Scripts/ZulGurub: Some small fixes to Venoxis:
- Remove mini-AI-part from Parasitic Serpent, it'll be handled in SAI.
- Set Venoxis passive untill aggroed.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/EasternKingdoms/ZulGurub/boss_venoxis.cpp | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/src/server/scripts/EasternKingdoms/ZulGurub/boss_venoxis.cpp b/src/server/scripts/EasternKingdoms/ZulGurub/boss_venoxis.cpp index 6fce36605a9..fddaf459d18 100644 --- a/src/server/scripts/EasternKingdoms/ZulGurub/boss_venoxis.cpp +++ b/src/server/scripts/EasternKingdoms/ZulGurub/boss_venoxis.cpp @@ -24,9 +24,7 @@ /* * TODO: - * - Fix timers (research) - * - Fix SAI for the summoned parasitic trigger - * - Generic cleanups + * - Fix timers (research some more) */ enum Texts @@ -51,7 +49,7 @@ enum Spells SPELL_PARASITIC_SERPENT = 23865, SPELL_SUMMON_PARASITIC_SERPENT = 23866, - SPELL_PARASITIC_SERPENT_TRIGGER = 23868, + SPELL_PARASITIC_SERPENT_TRIGGER = 23867, // used when swapping event-stages SPELL_VENOXIS_TRANSFORM = 23849, // 50% health - shapechange to cobra @@ -110,6 +108,7 @@ class boss_venoxis : public CreatureScript // remove all spells and auras from previous attempts me->RemoveAllAuras(); + me->SetReactState(REACT_PASSIVE); // set some internally used variables to their defaults _inMeleeRange = 0; @@ -121,6 +120,8 @@ class boss_venoxis : public CreatureScript void EnterCombat(Unit* /*who*/) { + me->SetReactState(REACT_AGGRESSIVE); + instance->SetBossState(DATA_VENOXIS, IN_PROGRESS); // Always running events @@ -139,23 +140,6 @@ class boss_venoxis : public CreatureScript DoZoneInCombat(); } - void JustSummoned(Creature* summon) - { - summons.Summon(summon); - switch (summon->GetEntry()) - { - case NPC_PARASITIC_SERPENT: - if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM)) - summon->CastSpell(target, SPELL_PARASITIC_SERPENT_TRIGGER, true); - break; - default: - break; - } - - if (me->isInCombat()) - DoZoneInCombat(summon); - } - void DamageTaken(Unit* /*attacker*/, uint32& /*damage*/) { // check if venoxis is ready to transform @@ -249,15 +233,14 @@ class boss_venoxis : public CreatureScript events.ScheduleEvent(EVENT_VENOM_SPIT, urand(5000,15000), 0, PHASE_TWO); break; case EVENT_POISON_CLOUD: - DoCast(me->getVictim(), SPELL_POISON_CLOUD); + if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM)) + DoCast(target, SPELL_POISON_CLOUD); events.ScheduleEvent(EVENT_POISON_CLOUD, urand(15000,20000), 0, PHASE_TWO); break; case EVENT_PARASITIC_SERPENT: - // currently disabled, needs SAI - /* - DoCast(me, SPELL_SUMMON_PARASITIC_SERPENT); + if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM)) + DoCast(target, SPELL_SUMMON_PARASITIC_SERPENT); events.ScheduleEvent(EVENT_PARASITIC_SERPENT, 15000, 0, PHASE_TWO); - */ break; case EVENT_FRENZY: // frenzy at 20% health |