aboutsummaryrefslogtreecommitdiff
path: root/src/game/CreatureEventAI.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-03-09 11:11:10 +0100
committerSpp <none@none>2010-03-09 11:11:10 +0100
commit8034a6c48ea565345cd769422bb80acf5df015e4 (patch)
tree41ca28853f2c124a3b6c07b0d917538f80118bcd /src/game/CreatureEventAI.cpp
parentc716c0e5e59f5e37f8e46822d77555768f23633a (diff)
Rename 'Hostil' to 'Hostile'
Credits to NoFantasy (Mangos) Closes issue #411 --HG-- branch : trunk
Diffstat (limited to 'src/game/CreatureEventAI.cpp')
-rw-r--r--src/game/CreatureEventAI.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp
index 6d3e0bf26a5..3b6281677f4 100644
--- a/src/game/CreatureEventAI.cpp
+++ b/src/game/CreatureEventAI.cpp
@@ -525,8 +525,8 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
break;
case ACTION_T_THREAT_ALL_PCT:
{
- std::list<HostilReference*>& threatList = m_creature->getThreatManager().getThreatList();
- for (std::list<HostilReference*>::iterator i = threatList.begin(); i != threatList.end(); ++i)
+ std::list<HostileReference*>& threatList = m_creature->getThreatManager().getThreatList();
+ for (std::list<HostileReference*>::iterator i = threatList.begin(); i != threatList.end(); ++i)
if(Unit* Temp = Unit::GetUnit(*m_creature,(*i)->getUnitGuid()))
m_creature->getThreatManager().modifyThreatPercent(Temp, action.threat_all_pct.percent);
break;
@@ -627,8 +627,8 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
break;
case ACTION_T_CAST_EVENT_ALL:
{
- std::list<HostilReference*>& threatList = m_creature->getThreatManager().getThreatList();
- for (std::list<HostilReference*>::iterator i = threatList.begin(); i != threatList.end(); ++i)
+ std::list<HostileReference*>& threatList = m_creature->getThreatManager().getThreatList();
+ for (std::list<HostileReference*>::iterator i = threatList.begin(); i != threatList.end(); ++i)
if (Unit* Temp = Unit::GetUnit(*m_creature,(*i)->getUnitGuid()))
if (Temp->GetTypeId() == TYPEID_PLAYER)
Temp->ToPlayer()->CastedCreatureOrGO(action.cast_event_all.creatureId, m_creature->GetGUID(), action.cast_event_all.spellId);
@@ -1105,9 +1105,9 @@ void CreatureEventAI::UpdateAI(const uint32 diff)
inline Unit* CreatureEventAI::SelectUnit(AttackingTarget target, uint32 position)
{
//ThreatList m_threatlist;
- std::list<HostilReference*>& m_threatlist = m_creature->getThreatManager().getThreatList();
- std::list<HostilReference*>::iterator i = m_threatlist.begin();
- std::list<HostilReference*>::reverse_iterator r = m_threatlist.rbegin();
+ std::list<HostileReference*>& m_threatlist = m_creature->getThreatManager().getThreatList();
+ std::list<HostileReference*>::iterator i = m_threatlist.begin();
+ std::list<HostileReference*>::reverse_iterator r = m_threatlist.rbegin();
if (position >= m_threatlist.size() || !m_threatlist.size())
return NULL;