xienwolf
Deity
Add 3 more tags to the list. Again in SpellInfos:
<PrereqNotAttacked> - Requires that the unit hasn't been flagged as HasAttacked yet to be allowed to cast the spell
<bSetHasAttacked> - Marks the unit as having attacked for the turn. Note that if the unit is Blitz they can still attack until their move points are all spent. Also remember that defensive strikes are linked to your HasAttacked field
<bRemoveHasAttacked> - Clears the HasAttacked flag from the unit. This means even if you don't have Blitz you would be able to attack or perform a Defensive Strike between turns. Also note that if a unit is out of movement points it is relatively useless (except for defensive strikes) to gain back the ability to attack
The Prereq one especially, but also the setHasAttacked field to some extent, are quite likely appropriate to place on quite a few spells which are marked bAbility. I created the tags for a specific spell which was proving problematic otherwise, so haven't had time to review all places where it may be appropriate to utilize the new tool
<PrereqNotAttacked> - Requires that the unit hasn't been flagged as HasAttacked yet to be allowed to cast the spell
<bSetHasAttacked> - Marks the unit as having attacked for the turn. Note that if the unit is Blitz they can still attack until their move points are all spent. Also remember that defensive strikes are linked to your HasAttacked field
<bRemoveHasAttacked> - Clears the HasAttacked flag from the unit. This means even if you don't have Blitz you would be able to attack or perform a Defensive Strike between turns. Also note that if a unit is out of movement points it is relatively useless (except for defensive strikes) to gain back the ability to attack
The Prereq one especially, but also the setHasAttacked field to some extent, are quite likely appropriate to place on quite a few spells which are marked bAbility. I created the tags for a specific spell which was proving problematic otherwise, so haven't had time to review all places where it may be appropriate to utilize the new tool