mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Add function to check if player is immune to everything (divine shield)
This commit is contained in:
@@ -429,6 +429,13 @@ namespace LuaPlayer
|
||||
}
|
||||
#endif
|
||||
|
||||
int IsImmuneToDamage(lua_State* L, Player* player)
|
||||
{
|
||||
Eluna::Push(L, player->isTotalImmune());
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns 'true' if the [Player] satisfies all requirements to complete the quest entry.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user