diff options
author | BroodWyrm <none@none> | 2009-05-30 11:35:54 +0200 |
---|---|---|
committer | BroodWyrm <none@none> | 2009-05-30 11:35:54 +0200 |
commit | cbe51194e74f3bda1e0de31e7440adb829f7fdfc (patch) | |
tree | 332b2a40b1b35bb2d903d1ba01a483b65db9b5d2 /src | |
parent | 15633ec97e23c9cdf364a9c146150a76a496792e (diff) |
*Fix some Script Bugs ... in TC2 virtual Aggo is EnterCombat now ... this fix Kiljaden, Muru, Moroes Script
--HG--
branch : trunk
Diffstat (limited to 'src')
4 files changed, 6 insertions, 32 deletions
diff --git a/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp b/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp index 1dd15dd9a46..196dacf759e 100644 --- a/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp +++ b/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp @@ -234,7 +234,6 @@ struct TRINITY_DLL_DECL npc_unworthy_initiate_anchorAI : public ScriptedAI uint64 guid_target; - void Aggro(Unit *who) {} void Reset(){} void SetTarget(uint64 target); diff --git a/src/bindings/scripts/scripts/zone/karazhan/boss_moroes.cpp b/src/bindings/scripts/scripts/zone/karazhan/boss_moroes.cpp index ec4b070a087..f00b3650e9f 100644 --- a/src/bindings/scripts/scripts/zone/karazhan/boss_moroes.cpp +++ b/src/bindings/scripts/scripts/zone/karazhan/boss_moroes.cpp @@ -110,7 +110,7 @@ struct TRINITY_DLL_DECL boss_moroesAI : public ScriptedAI DoZoneInCombat(); } - void Aggro(Unit* who) + void EnterCombat(Unit* who) { StartEvent(); @@ -349,8 +349,6 @@ struct TRINITY_DLL_DECL boss_moroes_guestAI : public ScriptedAI pInstance->SetData(DATA_MOROES_EVENT, NOT_STARTED); } - void Aggro(Unit* who) {} - void AcquireGUID() { if(!pInstance) diff --git a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_kiljaeden.cpp b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_kiljaeden.cpp index 066fffa3467..487aeee19b9 100644 --- a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_kiljaeden.cpp +++ b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_kiljaeden.cpp @@ -321,8 +321,6 @@ struct TRINITY_DLL_DECL boss_kalecgos_kjAI : public ScriptedAI void Reset(){} - void Aggro(Unit* who) {} - void FindOrbs() { CellPair pair(Trinity::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); @@ -524,7 +522,7 @@ struct TRINITY_DLL_DECL boss_kiljaedenAI : public Scripted_NoMovementAI } } - void Aggro(Unit* who){ + void EnterCombat(Unit* who){ DoZoneInCombat(); DoScriptText(SAY_KJ_EMERGE, m_creature); } @@ -776,8 +774,6 @@ struct TRINITY_DLL_DECL mob_kiljaeden_controllerAI : public Scripted_NoMovementA Summons.Summon(summoned); } - void Aggro(Unit* who) {} - void UpdateAI(const uint32 diff) { if(RandomSayTimer < diff && pInstance->GetData(DATA_MURU_EVENT) != DONE && pInstance->GetData(DATA_KILJAEDEN_EVENT) == NOT_STARTED){ @@ -836,7 +832,7 @@ struct TRINITY_DLL_DECL mob_hand_of_the_deceiverAI : public ScriptedAI summoned->SetLevel(m_creature->getLevel()); } - void Aggro(Unit* who){ + void EnterCombat(Unit* who){ if(pInstance){ pInstance->SetData(DATA_KILJAEDEN_EVENT, IN_PROGRESS); Creature* Control = ((Creature*)Unit::GetUnit(*m_creature, pInstance->GetData64(DATA_KILJAEDEN_CONTROLLER))); @@ -915,8 +911,6 @@ struct TRINITY_DLL_DECL mob_felfire_portalAI : public Scripted_NoMovementAI } - void Aggro(Unit* who) {} - void JustSummoned(Creature* summoned) { summoned->setFaction(m_creature->getFaction()); @@ -958,8 +952,6 @@ struct TRINITY_DLL_DECL mob_volatile_felfire_fiendAI : public ScriptedAI LockedTarget = false; } - void Aggro(Unit* who) {} - void DamageTaken(Unit *done_by, uint32 &damage) { if(damage > m_creature->GetHealth()) @@ -1007,8 +999,6 @@ struct TRINITY_DLL_DECL mob_armageddonAI : public Scripted_NoMovementAI Timer = 0; } - void Aggro(Unit* who){} - void UpdateAI(const uint32 diff) { if(Timer < diff){ @@ -1068,10 +1058,7 @@ struct TRINITY_DLL_DECL mob_shield_orbAI : public ScriptedAI else Clockwise = false; } - void Reset(){ - } - - void Aggro(Unit* who){} + void Reset(){} void UpdateAI(const uint32 diff){ if(PointReached){ @@ -1130,8 +1117,6 @@ struct TRINITY_DLL_DECL mob_sinster_reflectionAI : public ScriptedAI Class = 0; } - void Aggro(Unit* who){} - void UpdateAI(const uint32 diff){ if(Class == 0){ diff --git a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_muru.cpp b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_muru.cpp index b38607e1a7f..b026e2d6f7c 100644 --- a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_muru.cpp +++ b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_muru.cpp @@ -137,7 +137,7 @@ struct TRINITY_DLL_DECL boss_entropiusAI : public ScriptedAI } } - void Aggro(Unit *who) { + void EnterCombat(Unit *who) { DoCastAOE(SPELL_NEGATIVE_ENERGY_E, true); DoCast(m_creature, SPELL_ENTROPIUS_SPAWN, false); } @@ -230,7 +230,7 @@ struct TRINITY_DLL_DECL boss_muruAI : public Scripted_NoMovementAI pInstance->SetData(DATA_MURU_EVENT, NOT_STARTED); } - void Aggro(Unit *who) + void EnterCombat(Unit *who) { if(pInstance) pInstance->SetData(DATA_MURU_EVENT, IN_PROGRESS); @@ -361,8 +361,6 @@ struct TRINITY_DLL_DECL npc_muru_portalAI : public Scripted_NoMovementAI Summons.DespawnAll(); } - void Aggro(Unit *who) {} - void JustSummoned(Creature* summoned){ Player* Target; Target = (Player*)(Unit::GetUnit((*m_creature), pInstance->GetData64(DATA_PLAYER_GUID))); @@ -422,8 +420,6 @@ struct TRINITY_DLL_DECL npc_dark_fiendAI : public ScriptedAI m_creature->addUnitState(UNIT_STAT_STUNNED); }; - void Aggro(Unit *who) {} - void SpellHit(Unit* caster, const SpellEntry* Spell){ for(uint8 i = 0; i < 3; ++i) if(Spell->Effect[i] == 38){ @@ -482,8 +478,6 @@ struct TRINITY_DLL_DECL npc_void_sentinelAI : public ScriptedAI DoTeleportTo(x,y,71); }; - void Aggro(Unit *who) {} - void JustDied(Unit* killer){ for (uint8 i = 0; i < 8; ++i){ m_creature->SummonCreature(CREATURE_VOID_SPAWN, m_creature->GetPositionX(),m_creature->GetPositionY(),m_creature->GetPositionZ(), rand()%6, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 180000); @@ -536,8 +530,6 @@ struct TRINITY_DLL_DECL npc_blackholeAI : public ScriptedAI DoCastAOE(SPELL_BLACKHOLE_SPAWN, true); } - void Aggro(Unit *who) {} - void UpdateAI(const uint32 diff) { if(SpellTimer < diff){ |