If you're using spell_routines.inc it's likely that ${Me.Casting.MyCastTime} is causing your crash. It makes a call to GetAACastingTimeModifier under the bonnet. A lot of the other AA calls just aren't work properly, returning NULL's etc. This one will most definately cause a CTD though.