I did that and it still says that it doesn't know the target type. My code is below.
Code:
case ST_UndeadAE: //should only affect undead...
case ST_AETarget:
case ST_TargetAETap:
{
if(!spell_target)
{
mlog(SPELLS__CASTING_ERR, "Spell %d canceled: invalid target (AOE)", spell_id);
Message_StringID(13,SPELL_NEED_TAR);
return false;
}
ae_center = spell_target;
CastAction = AETarget;
break;
}