Mad Props to Scrime, Grimjack & Mixy. Not sure which one made it originally. I'll find out and edit post if I get time.
I use this all the time.
Declare Variable.
Code: Select all
/declare FizzleFlag global Code: Select all
Sub NoFizzleCast
| make sure we dont get passed a null spell name
/if "@Param0"!="" {
:NoFizzleCastStart
/varset FizzleFlag 0
/if "$char(state)"!="STAND" /stand
| check to make sure we have mana to cast this spell
/if n $char(mana,cur)<$spell("@Param0",mana) /call MedUp
/cast "@Param0"
/doevents Fizzle
| if we fizzled, try to cast again
/if n @FizzleFlag==1 /goto :NoFizzleCastStart
}
/return 



