aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-17 23:27:51 -0500
committermegamage <none@none>2009-05-17 23:27:51 -0500
commita922f36da5c1d3d9809649cac028393e6b06b5df (patch)
tree1a951f2cce9916c7d8d0abd7500d71e818262c85 /src/game
parent1d859b6ee4251e26e02348286d549710435bd0f1 (diff)
*Update script for Loatheb.
--HG-- branch : trunk
Diffstat (limited to 'src/game')
-rw-r--r--src/game/CreatureAI.cpp1
-rw-r--r--src/game/CreatureAIImpl.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp
index 2fc4cf938cf..230c1d446fc 100644
--- a/src/game/CreatureAI.cpp
+++ b/src/game/CreatureAI.cpp
@@ -33,6 +33,7 @@ void CreatureAI::OnCharmed(bool apply)
}
AISpellInfoType * CreatureAI::AISpellInfo;
+TRINITY_DLL_SPEC AISpellInfoType * GetAISpellInfo(uint32 i) { return &CreatureAI::AISpellInfo[i]; }
void CreatureAI::DoZoneInCombat(Creature* creature)
{
diff --git a/src/game/CreatureAIImpl.h b/src/game/CreatureAIImpl.h
index 7edebb709fd..f404f0d954f 100644
--- a/src/game/CreatureAIImpl.h
+++ b/src/game/CreatureAIImpl.h
@@ -81,6 +81,8 @@ class EventMap : private std::map<uint32, uint32>
public:
explicit EventMap() : m_phase(0), m_time(0) {}
+ uint32 GetTimer() const { return m_time; }
+
void Reset() { clear(); m_time = 0; m_phase = 0; }
void Update(uint32 time) { m_time += time; }
@@ -171,5 +173,7 @@ struct AISpellInfoType
uint32 cooldown;
};
+TRINITY_DLL_SPEC AISpellInfoType * GetAISpellInfo(uint32 i);
+
#endif