Add function to check if player is immune to everything (divine shield)

This commit is contained in:
Rochet2
2017-09-16 02:56:43 +03:00
parent de4f4276ac
commit b1e31a6886
2 changed files with 8 additions and 0 deletions

View File

@@ -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.
*