20 lines
503 B
Plaintext
20 lines
503 B
Plaintext
#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();
|
|
}
|
|
}
|