*Cleanups and Fixes in Mirror Image script.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-28 21:34:18 +02:00
parent cf0d8a2b03
commit c15c25aca4
7 changed files with 104 additions and 24 deletions

View File

@@ -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 );