@Override
	public int getAbilityFlagType(String strflag)
	{
		for (final String element : Ability.ACODE_DESCS)
		{
			if(element.equalsIgnoreCase(strflag))
				return 1;
		}
		for (final String element : Ability.DOMAIN_DESCS)
		{
			if(element.equalsIgnoreCase(strflag))
				return 2;
		}
		if(strflag.startsWith("!"))
			strflag=strflag.substring(1);
		for (final String element : Ability.FLAG_DESCS)
		{
			if(element.equalsIgnoreCase(strflag))
				return 3;
		}
		if(CMClass.getAbility(strflag)!=null)
			return 0;
		return -1;
	}