Exemple #1
0
 static void btd(int s, int t, BS &b) {
     if(b.poke(s).isFull()) {
         if (b.gen() <= 4)
             turn(b,s)["CannotBeKoedBy"] = t;
         else
             turn(b,s)["CannotBeKoedAt"] = b.attackCount();
     }
 }
Exemple #2
0
 static void btd(int s, int t, BS &b) {
     if (b.coinflip(1, 10)) {
         if (b.gen() <= 4)
             turn(b,s)["CannotBeKoedBy"] = t;
         else
             turn(b,s)["CannotBeKoedAt"] = b.attackCount();
     }
 }
Exemple #3
0
 static void uodr(int s, int t, BS &b) {
     if (tmove(b,t).flags & Move::PowderFlag) {
         turn(b,s)[QString("Block%1").arg(b.attackCount())] = true;
         //b.sendAbMessage(17, 0, s, t); //add message for Safety Goggles
     }
 }