correct variable reference
move actions when spell is cast into a separate event so that it occurs after getting choices, fixes replicate mechanic