You need to break; after ST_AETarget: unless you actually want all three of those cases to apply to TargetAETap.
Not your issue with getting unknown target type but would be an issue.
Quote:
Originally Posted by Kingly_Krab
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;
}
|