*Move SelectHostilTarget() to class Creature and return getVictim() directly.

*Fix the crash caused by mandokir script.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-21 14:17:29 -06:00
parent 148192eca1
commit d81d81b211
5 changed files with 38 additions and 27 deletions
+1
View File
@@ -630,6 +630,7 @@ class TRINITY_DLL_SPEC Creature : public Unit
bool IsFormationLeader() {return (GetDBTableGUIDLow() && GetDBTableGUIDLow() == m_formationID);}
uint32 GetFormationID(){return m_formationID;}
Unit *SelectHostilTarget();
protected:
bool CreateFromProto(uint32 guidlow,uint32 Entry,uint32 team, const CreatureData *data = NULL);
bool InitEntry(uint32 entry, uint32 team=ALLIANCE, const CreatureData* data=NULL);