aboutsummaryrefslogtreecommitdiff
path: root/src/game/ReactorAI.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-30 18:10:05 -0600
committermegamage <none@none>2009-01-30 18:10:05 -0600
commit8fee06f041fbfbc7e22eccc03a8f12bd7a649999 (patch)
tree9512260148dabb87926131a225831e72980a250d /src/game/ReactorAI.cpp
parent03234a0657eca4836b1015556973629893c76958 (diff)
*AI structure update.
--HG-- branch : trunk
Diffstat (limited to 'src/game/ReactorAI.cpp')
-rw-r--r--src/game/ReactorAI.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/game/ReactorAI.cpp b/src/game/ReactorAI.cpp
index 7ade73495c3..29b07f60b00 100644
--- a/src/game/ReactorAI.cpp
+++ b/src/game/ReactorAI.cpp
@@ -41,22 +41,6 @@ ReactorAI::MoveInLineOfSight(Unit *)
{
}
-void
-ReactorAI::AttackStart(Unit *p)
-{
- if(!p)
- return;
-
- if(i_creature.Attack(p,true))
- {
- DEBUG_LOG("Tag unit GUID: %u (TypeId: %u) as a victim", p->GetGUIDLow(), p->GetTypeId());
-
- i_creature.AddThreat(p, 0.0f);
- i_victimGuid = p->GetGUID();
- i_creature.GetMotionMaster()->MoveChase(p);
- }
-}
-
bool
ReactorAI::IsVisible(Unit *) const
{
@@ -67,7 +51,7 @@ void
ReactorAI::UpdateAI(const uint32 /*time_diff*/)
{
// update i_victimGuid if i_creature.getVictim() !=0 and changed
- if(!i_creature.SelectHostilTarget() || !i_creature.getVictim())
+ if(!UpdateVictim())
return;
i_victimGuid = i_creature.getVictim()->GetGUID();