Thread: Target Type 20.
View Single Post
  #4  
Old 01-21-2014, 03:28 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

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 View Post
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;
}
Reply With Quote