Aantioch_Infernum/_module/nss/aa_wild_magic.nss

20 lines
503 B
Plaintext
Raw Permalink Normal View History

2023-08-08 16:22:17 -04:00
#include "x2_inc_switches"
#include "prc_inc_spells"
void main()
{
int nSpell = GetSpellId();
object oItem = PRCGetSpellCastItem();
if(GetBaseItemType(oItem) == BASE_ITEM_POTIONS) return;
if(nSpell == SPELL_RESURRECTION || nSpell == SPELL_RAISE_DEAD) return;
int nRand = Random(100);
if(nRand <= 50)
{
FloatingTextStrRefOnCreature(84829, OBJECT_SELF);
ExecuteScript("aa_rod_of_wonder", OBJECT_SELF);
SetModuleOverrideSpellScriptFinished();
}
}