Eluna add boost support and fix warnings

This commit is contained in:
Rochet2
2014-07-24 23:37:42 +03:00
parent 62db0c601b
commit 38c516c527
8 changed files with 111 additions and 41 deletions

View File

@@ -38,14 +38,14 @@ namespace LuaCreature
return 1;
}
int IsTargetAcceptable(lua_State* L, Creature* creature)
int IsTargetableForAttack(lua_State* L, Creature* creature)
{
Unit* target = Eluna::CHECKOBJ<Unit>(L, 2);
bool inversAlive = Eluna::CHECKOBJ<bool>(L, 2);
#ifdef MANGOS
Eluna::Push(L, creature->IsTargetableForAttack(target));
Eluna::Push(L, creature->IsTargetableForAttack(inversAlive));
#else
Eluna::Push(L, creature->isTargetableForAttack(target));
Eluna::Push(L, creature->isTargetableForAttack(inversAlive));
#endif
return 1;
}