TheHordeOrcs_PRC8/_module/nss/healingshrine.nss

14 lines
350 B
Plaintext
Raw Normal View History

// Healing Shrine Script
// July 2002
// By Dalantriel
// Casts Heal on Player if their hit points are not at maximum
void main()
{
object oPC = GetLastUsedBy();
if (GetCurrentHitPoints(oPC) < GetMaxHitPoints(oPC))
{
ActionCastSpellAtObject (SPELL_HEAL, oPC, METAMAGIC_ANY, TRUE, 1, PROJECTILE_PATH_TYPE_DEFAULT, FALSE);
}
}