PRC8/nwn/trunk/newspellbook/bnd_vest_zcerysm.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

22 lines
673 B
Plaintext

/**
* @file
* Summon Alien for Zceryll
*
*/
#include "bnd_inc_bndfunc"
void main()
{
object oBinder = OBJECT_SELF;
if(!BindAbilCooldown(oBinder, GetSpellId(), VESTIGE_ZCERYLL)) return;
int nBinderLevel = GetBinderLevel(oBinder, VESTIGE_ZCERYLL);
int nSpell = SPELL_SUMMON_CREATURE_V;
if (nBinderLevel >= 18) nSpell = SPELL_SUMMON_CREATURE_IX;
else if (nBinderLevel >= 16) nSpell = SPELL_SUMMON_CREATURE_VIII;
else if (nBinderLevel >= 14) nSpell = SPELL_SUMMON_CREATURE_VII;
else if (nBinderLevel >= 12) nSpell = SPELL_SUMMON_CREATURE_VI;
DoRacialSLA(nSpell, nBinderLevel, GetBinderDC(oBinder, VESTIGE_ZCERYLL));
}