Files
Amon_PRC8/_module/nss/devcrit_block.nss

13 lines
297 B
Plaintext
Raw Normal View History

#include "nwnx_events"
void main()
{
// fetch the target object from event data
object oTarget = StringToObject(NWNX_Events_GetEventData("TARGET"));
if (GetLocalInt(oTarget, "IMMUNE_DEV_CRIT"))
{
// block the instant death
NWNX_Events_SetEventResult("0");
}
}