diff options
| author | megamage <none@none> | 2008-11-02 00:59:44 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2008-11-02 00:59:44 -0500 |
| commit | 972e2d56e2c9139340f7f2bda31ded5e1696c70d (patch) | |
| tree | 0353988b5c6b630308bf46d4835ae5390eb284bf /src/game/CreatureAIRegistry.cpp | |
| parent | 1dad2c855c24591d38f78d4585c71cd5c9fc3cb3 (diff) | |
[svn] Add function GameObject::CastSpell. Used for hunter's trap and so.
Use original caster instead caster to check spell hit result.
Let spell triggers have the same faction as the summoner.
Fix the bug that trigger creatures attack enemy. (no need use civilian extra flag in the future, 128 is enough)
Fix shadow step.
--HG--
branch : trunk
Diffstat (limited to 'src/game/CreatureAIRegistry.cpp')
| -rw-r--r-- | src/game/CreatureAIRegistry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/CreatureAIRegistry.cpp b/src/game/CreatureAIRegistry.cpp index 0416d2951bd..6a0c5637893 100644 --- a/src/game/CreatureAIRegistry.cpp +++ b/src/game/CreatureAIRegistry.cpp @@ -37,7 +37,7 @@ namespace AIRegistry { void Initialize() { - (new CreatureAIFactory<NullCreatureAI>("NullAI"))->RegisterSelf(); + (new CreatureAIFactory<NullCreatureAI>("NullCreatureAI"))->RegisterSelf(); (new CreatureAIFactory<AggressorAI>("AggressorAI"))->RegisterSelf(); (new CreatureAIFactory<ReactorAI>("ReactorAI"))->RegisterSelf(); (new CreatureAIFactory<GuardAI>("GuardAI"))->RegisterSelf(); |
