When one UNIT Attacks another, or a UNIT Attacks or Invades a BUILDING, or a BUILDING Attacks a UNIT or another BUILDING, a combat ensues. All combat has the same basic mechanic: both attacker and defender generate a random integer between 0 and 9 and add their attack/defense values, respectively. The higher total wins, with defender winning ties. The result depends on the type of combat: