src/main/java/ru/alphatech/icfpc/cards/Zombie.java
changeset 35 743564afa994
parent 12 042162c73d0f
child 68 a84a3c755d93
     1.1 --- a/src/main/java/ru/alphatech/icfpc/cards/Zombie.java	Sun Jun 19 10:50:46 2011 +0400
     1.2 +++ b/src/main/java/ru/alphatech/icfpc/cards/Zombie.java	Sun Jun 19 12:12:55 2011 +0400
     1.3 @@ -17,17 +17,13 @@
     1.4  				if (iVal.getClass().equals(Value.class))
     1.5  				{
     1.6  					int i = ((Value)iVal).getValue();
     1.7 -					opponent.getSlot(i).putValue(x);
     1.8 -					opponent.getSlot(i).setVitality(-1);
     1.9 +					if (i >= 0 && i < 256)
    1.10 +					{
    1.11 +						opponent.getSlot(i).putValue(x);
    1.12 +						opponent.getSlot(i).setVitality(-1);
    1.13 +					}
    1.14  				}
    1.15 -				return new ICard()
    1.16 -				{
    1.17 -					@Override
    1.18 -					public IValue returnValue(IValue value, Player proponent, Player opponent)
    1.19 -					{
    1.20 -						return null;
    1.21 -					}
    1.22 -				};
    1.23 +				return new I();
    1.24  			}
    1.25  		};
    1.26  	}