Attacking is one of the main ways you deal damage to your opponent's units and sites, and is a core part of Sorcery.
Units attack as part of the Move and Attackbasic ability. Certain rare effects may also explicitly allow attacks, e.g. .
You may only attack enemy units or the surface of enemy sites that are at your location. When you attack, follow this sequence:
Declare the attack target and check that it's a legal target right now. If not, end this process and no attack happened.
Assuming the attack target is legal, "attack" triggers are now satisfied and the defender has been targeted and attacked (e.g. , , , ). Resolve those, using the storyline rules as usual for simultaneous triggers.
One unit may use the Defend ability, resolving its movement, if any.
If it now occupies the attack's location, it joins the attack as a defender.
If the original target was a site, it's removed from the attack.
If the original target was a unit, it may remain in the fight or not, as chosen by the player who controls the unit using the Defend ability.
Note that the defender is not "attacked" nor "targeted." The opportunity to use "attack" triggers (e.g. , , etc.) has already passed.
Repeat 3.a and 3.b as many times as defending player wants, one defender at a time.
Defend window is closed.
Check for attack target legality again. As long as it occupies the attack's location, units that used the Defend ability are automatically legal targets (e.g. a Stealthminion chooses to defend, a unit on chooses to defend, etc.)
Resolve the fight.
If there are no other units involved since you're attacking an undefended site, simply strike the site, damaging it and causing the controlling avatar to lose that amount of life. This strike is referred to as "successfully attacking" the site (even if no damage is dealt due to a zeropower strike).
The attack is over. Any "after attack" triggers resolve now.