From 73f0cb747c31cdcf9fcfa2d51c7cd04cf391116c Mon Sep 17 00:00:00 2001 From: tobmaps Date: Sat, 11 Jun 2011 05:37:59 +0700 Subject: Core/Misc: Fix some typos --- src/server/game/AI/CoreAI/CombatAI.cpp | 12 ++++++------ src/server/game/AI/CoreAI/CombatAI.h | 4 ++-- src/server/game/AI/CreatureAIRegistry.cpp | 2 +- src/server/game/Spells/SpellMgr.cpp | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/server/game/AI/CoreAI/CombatAI.cpp b/src/server/game/AI/CoreAI/CombatAI.cpp index e3f2e7b9cfe..b05973a580a 100755 --- a/src/server/game/AI/CoreAI/CombatAI.cpp +++ b/src/server/game/AI/CoreAI/CombatAI.cpp @@ -44,7 +44,7 @@ int CombatAI::Permissible(const Creature * /*creature*/) return PERMIT_BASE_NO; } -int ArchorAI::Permissible(const Creature * /*creature*/) +int ArcherAI::Permissible(const Creature * /*creature*/) { return PERMIT_BASE_NO; } @@ -174,13 +174,13 @@ void CasterAI::UpdateAI(const uint32 diff) } ////////////// -//ArchorAI +//ArcherAI ////////////// -ArchorAI::ArchorAI(Creature *c) : CreatureAI(c) +ArcherAI::ArcherAI(Creature *c) : CreatureAI(c) { if (!me->m_spells[0]) - sLog->outError("ArchorAI set for creature (entry = %u) with spell1=0. AI will do nothing", me->GetEntry()); + sLog->outError("ArcherAI set for creature (entry = %u) with spell1=0. AI will do nothing", me->GetEntry()); m_minRange = GetSpellMinRange(me->m_spells[0], false); if (!m_minRange) @@ -189,7 +189,7 @@ ArchorAI::ArchorAI(Creature *c) : CreatureAI(c) me->m_SightDistance = me->m_CombatDistance; } -void ArchorAI::AttackStart(Unit *who) +void ArcherAI::AttackStart(Unit *who) { if (!who) return; @@ -209,7 +209,7 @@ void ArchorAI::AttackStart(Unit *who) me->GetMotionMaster()->MoveIdle(); } -void ArchorAI::UpdateAI(const uint32 /*diff*/) +void ArcherAI::UpdateAI(const uint32 /*diff*/) { if (!UpdateVictim()) return; diff --git a/src/server/game/AI/CoreAI/CombatAI.h b/src/server/game/AI/CoreAI/CombatAI.h index 6e8f195282c..97db76252f7 100755 --- a/src/server/game/AI/CoreAI/CombatAI.h +++ b/src/server/game/AI/CoreAI/CombatAI.h @@ -64,10 +64,10 @@ class CasterAI : public CombatAI float m_attackDist; }; -struct ArchorAI : public CreatureAI +struct ArcherAI : public CreatureAI { public: - explicit ArchorAI(Creature *c); + explicit ArcherAI(Creature *c); void AttackStart(Unit *who); void UpdateAI(const uint32 diff); diff --git a/src/server/game/AI/CreatureAIRegistry.cpp b/src/server/game/AI/CreatureAIRegistry.cpp index 3f97135db64..003ead34236 100755 --- a/src/server/game/AI/CreatureAIRegistry.cpp +++ b/src/server/game/AI/CreatureAIRegistry.cpp @@ -45,7 +45,7 @@ namespace AIRegistry (new CreatureAIFactory("PetAI"))->RegisterSelf(); (new CreatureAIFactory("TotemAI"))->RegisterSelf(); (new CreatureAIFactory("CombatAI"))->RegisterSelf(); - (new CreatureAIFactory("ArchorAI"))->RegisterSelf(); + (new CreatureAIFactory("ArcherAI"))->RegisterSelf(); (new CreatureAIFactory("TurretAI"))->RegisterSelf(); (new CreatureAIFactory("EventAI"))->RegisterSelf(); (new CreatureAIFactory("AOEAI"))->RegisterSelf(); diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index f84271778b7..f59d6cf3231 100755 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -4030,7 +4030,7 @@ void SpellMgr::LoadSpellCustomAttr() // The above situation causes the visual for this spell to be bugged, so we remove the instakill // effect and implement a script hack for that. spellInfo->Effect[EFFECT_1] = 0; - count++; + ++count; break; // ENDOF ULDUAR SPELLS // -- cgit v1.2.3