im making a spell called Demonic Wave that targets an area and heals all allied demon units in the area and deals damage to all enemy non-demons in the area. i have like 4 or 5 different heroes that are supposed to be demons and i have a few units that some of them summon that are also demons. instead of using an "or" condition to check like 8 or 9 different unit types i want to just give demons a different classification under "Stats - Unit Classification" that only the demon units have. cant use Ancient because that classification is already giving to a different type of units, can't use mechanical because i have some mechanical units already, neutral wont work, summoned wont work (because all summoned units get that classification) cant use tauren because a different type has that (to be used with ancestral spirit, which only revives units with tauren classification), town hall wont work thats for a building classification and scroll of teleportation targets town halls i dont want demons to be targed for that scroll. tree wouldnt work for obvious reasons, undead wont work because im already using that classifcation for undead units, walkable wont work because that does other things, ward wouldnt work because that classification is already used for wards, and worker wouldnt work because then i'd get idle worker icons on the side of the screen. so the only classification i could use is "Giant" so i give my demon units the Giant classification.
but now i have a different problem.
i try to do an if/then/else to check if the units have the giant classification, i use the boolean "Unit - Unit Classification Check" to see if the unit has Giant classification, but the list of classifications does not have Giant in it. does anyone know of any jass function that checks for those types of classifications? it doesnt have "Tauren" in there either, but i KNOW they must have some kind of function for that bceause there are spells that only target taurens. probably coded in jass in the ability, but there has to be some function that checks if it has a certain classification and i cant find it in GUI. im hoping someone knows what it is in jass.
but now i have a different problem.
i try to do an if/then/else to check if the units have the giant classification, i use the boolean "Unit - Unit Classification Check" to see if the unit has Giant classification, but the list of classifications does not have Giant in it. does anyone know of any jass function that checks for those types of classifications? it doesnt have "Tauren" in there either, but i KNOW they must have some kind of function for that bceause there are spells that only target taurens. probably coded in jass in the ability, but there has to be some function that checks if it has a certain classification and i cant find it in GUI. im hoping someone knows what it is in jass.


