You have to include this code snippet in all of your spell files in order for this to work. Substitue the spell level that this spell is for bards for a, clerics for b, druids for c, paladins for d, rangers for e and sorcerers/wizards for f. #include 'web_cast2' void main() { int nCheck = CastCheck(a, b, c, d, e, f); //UMD Check if(nCheck == 0) return; // Failure check