attack Directly
Performs an attack on to with attack damage.
Instead of FightEngine.attack, this method doesn't have a source of an attack, and the attack value is not influenced by any base colors. A HpChanged message is still sent to to normally.
This method can be called by items, for instance, since they don't have any GameUnits.
Note: healing is considered a special kind of attack, where the damage value is negative.
Parameters
to
The unit being attacked.
attack
The damage to be applied to to.