Code for simulated attacks and casts for testing player combat/spellcasting.

SimulateAttack will simulate an attack between two players a given number of times, and log the results to the GodLog. Records number of successful hits and misses, min damage, max damage, average damage per swing (damage per second), attacker offense and target defense, and percentage of hits landed. Can be passed number of attacks, attacker, target, offense and defense as parameters (will use the combatants' offense and defense if none given). Combatants do not need to be logged in to run this.

Also included is SimulateCast, which simulates the casting of a spell on a target by an attacker. Can also take spellpower and number of casts as parameters. Returns the number of successful casts and fizzles, the percentage of successful casts and the spellpower. Both combatants need to be logged on for this to run.

SimulateDamage in player.kod is required for SimulateAttack to work (but should not be called independently).

Intended for use on 104.