The attack value of the fighter is used as the base value. This is calculated against the defense value of the target, after mods and buffs are taken into account.
Hitting multiple enemies divides damage evenly between them. Having multiple fighters with the same color increases damage done by tiles of that color, while not having any fighter of that color means those tiles will do almost no damage. Color advantages and others are also calculated.