#strict 2 #appendto SCRL static SCRL_spells; protected func Initialize() { SetSpell(SCRL_spells[Random(GetLength(SCRL_spells))]); return _inherited(); } public func SpellFailed(id idSpell, object pAimingClonk) { // Spell canceled? Give back the scroll SetSpell(idSpell); if(pAimingClonk && !pAimingClonk->~RejectCollect(GetID(this), this)) { Enter(pAimingClonk, this); } pAimingClonk = 0; return 0; } global func SetScrollSpells(array spells) { SCRL_spells = spells; }