*Do not call reset in construct funciton of script.

*Add function doaction to safely pass parameters between scripts.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-31 18:12:49 -06:00
parent bd1a630463
commit 7f209249a2
270 changed files with 335 additions and 578 deletions
+6
View File
@@ -79,9 +79,15 @@ class TRINITY_DLL_SPEC UnitAI
virtual void AttackStart(Unit *);
virtual void UpdateAI(const uint32 diff) = 0;
// Initialize
virtual void Reset() {};
// Called when unit is charmed
virtual void OnCharmed(bool apply) = 0;
// Pass parameters between AI
virtual void DoAction(const int32 param) {}
//Do melee swing of current victim if in rnage and ready and not casting
void DoMeleeAttackIfReady();
};