mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
* Example on AI script conversion (and minor correction in CreatureScript).
--HG-- branch : trunk
This commit is contained in:
@@ -487,7 +487,7 @@ class CreatureScript : public ScriptObject, public UpdatableScript<Creature>
|
||||
virtual uint32 OnDialogStatus(Player* player, Creature* creature) { return 0; }
|
||||
|
||||
// Called when a CreatureAI object is needed for the creature.
|
||||
virtual CreatureAI* OnGetAI() { return NULL; }
|
||||
virtual CreatureAI* OnGetAI(Creature* creature) const { return NULL; }
|
||||
};
|
||||
|
||||
class GameObjectScript : public ScriptObject, public UpdatableScript<GameObject>
|
||||
|
||||
Reference in New Issue
Block a user