Thread:Jens Ingels/@comment-1912161-20130424102413/@comment-3271569-20130426103207

You probaly are reffering to the Template:StadiumTournamentTable/Attacks/source.

Wel it's kinda easy to explane. That code simple detect what attack give the most damage. I first tryed it with basepower but I forgot that the basepower of phsysical split in two during the calculation. So this is the best option. This is wat it does:

If level lower than 8
 * Ifeq damage attack 1 > attack 2
 * yes= attack1
 * no= attack2

If level lower than 15
 * Ifeq damage attack 1 > attack 2
 * yes= Ifeq damage attack 1 > attack 3
 * Attack1
 * Attack3
 * no= Ifeq damage attack 2 > attack 3
 * Attack2
 * Attack3

If level 15 and higher
 * Ifeq damage attack 1 > attack 2
 * yes= Ifeq damage attack 1 > attack 3
 * Ifeq damage attack 1 > attack 4
 * Attack1
 * Attack4
 * Ifeq damage attack 3 > attack 4
 * Attack3
 * Attack4
 * no= Ifeq damage attack 2 > attack 3
 * Ifeq damage attack 2> attack 4
 * Attack2
 * Attack4
 * Ifeq damage attack 3 > attack 4
 * Attack3
 * Attack4

--- Ow forgot I also got the Template:Max