diff --git a/CreatureMethods.h b/CreatureMethods.h index 84e020e..9a455f1 100644 --- a/CreatureMethods.h +++ b/CreatureMethods.h @@ -40,7 +40,7 @@ namespace LuaCreature int IsTargetableForAttack(lua_State* L, Creature* creature) { - bool inversAlive = Eluna::CHECKOBJ(L, 2); + bool inversAlive = Eluna::CHECKVAL(L, 2); #ifdef MANGOS Eluna::Push(L, creature->IsTargetableForAttack(inversAlive));