Esempio n. 1
0
 public static void SummonYogurtOntoPlayer(TroopScript Player, TroopScript Summoner)
 {
     int PlayerValue = TroopValue(Player);
     int SummonerValue = TroopValue(Summoner);
     if (PlayerValue>SummonerValue+2)
         Player.SetOgreSummonInto(Summoner);
     else if (PlayerValue>SummonerValue -2 && SummonerValue+2>PlayerValue)
                 Player.SetNumber(0);
     else if (PlayerValue<= SummonerValue-2){
         Player.Faction = Summoner.Faction;
         Player.SetOgreSummonInto(Summoner);
     }
 }