diff options
author | QAston <none@none> | 2009-07-28 21:34:18 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-07-28 21:34:18 +0200 |
commit | c15c25aca40d30b9ac978f3f6476dc52fa6ff94b (patch) | |
tree | f9d8df65afa21221b3be1d52f23891b8b6a5dc3d /src/game/Unit.cpp | |
parent | cf0d8a2b035a60ed0fc9a70df8d2d4d9b3a598ea (diff) |
*Cleanups and Fixes in Mirror Image script.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 0990a7c3965..b10bc30edf2 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -3521,6 +3521,13 @@ Spell* Unit::FindCurrentSpellBySpellId(uint32 spell_id) const return NULL; } +int32 Unit::GetCurrentSpellCastTime(uint32 spell_id) const +{ + if (Spell const * spell = FindCurrentSpellBySpellId(spell_id)) + return spell->GetCastTime(); + return 0; +} + bool Unit::isInFrontInMap(Unit const* target, float distance, float arc) const { return IsWithinDistInMap(target, distance) && HasInArc( arc, target ); |