mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna add boost support and fix warnings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user