After that, the code checks your "attack" ratio vs the opponent's "defence" ratio.
The defence ratio is quite simple:
code: Select all
$eratio = $ewiz / $enemy[land] * 1.05 * $erace[magic];The attack ratio is a bit different:
code: Select all
$uratio = $uwiz / (($users[land] + $enemy[land]) / 2) * $urace[magic];Interestingly enough, somebody removed the 175-Spies-Per-Acre-Of-Land cap...
Anyway, to make a "successful" mage attack, $uratio (your attack ratio) must be more than 2.2 times $eratio (your enemy's defence ratio).