Enable null as CastSpell target and Add IsCasting

Closes https://github.com/ElunaLuaEngine/Eluna/issues/160
This commit is contained in:
Rochet2
2015-08-10 01:11:01 +03:00
parent 1bc22faa7f
commit b9bc5343b4
2 changed files with 23 additions and 7 deletions

View File

@@ -366,6 +366,7 @@ ElunaRegister<Unit> UnitMethods[] =
{ "IsRooted", &LuaUnit::IsRooted }, // :IsRooted()
{ "IsFullHealth", &LuaUnit::IsFullHealth }, // :IsFullHealth() - Returns if the unit is full health
{ "HasAura", &LuaUnit::HasAura }, // :HasAura(spellId) - Returns true if the unit has the aura from the spell
{ "IsCasting", &LuaUnit::IsCasting },
{ "IsStandState", &LuaUnit::IsStandState }, // :IsStandState() - Returns true if the unit is standing
#ifndef CLASSIC
{ "IsOnVehicle", &LuaUnit::IsOnVehicle }, // :IsOnVehicle() - Checks if the unit is on a vehicle