[M15] Added The Chain Veil Artifact.

This commit is contained in:
LevelX2 2014-07-10 22:19:09 +02:00
parent 1b3d31c670
commit 98e3fe9bde
3 changed files with 197 additions and 2 deletions

View file

@ -41,7 +41,7 @@ import java.util.UUID;
*/
public class AttackedThisTurnWatcher extends Watcher {
public Set<UUID> attackedThisTurnCreatures = new HashSet<UUID>();
public Set<UUID> attackedThisTurnCreatures = new HashSet<>();
public AttackedThisTurnWatcher() {
super("AttackedThisTurn", WatcherScope.GAME);

View file

@ -51,8 +51,9 @@ public class BloodthirstWatcher extends Watcher {
@Override
public void watch(GameEvent event, Game game) {
if (condition == true) //no need to check - condition has already occured
if (condition == true) { //no need to check - condition has already occured
return;
}
if (event.getType() == GameEvent.EventType.DAMAGED_PLAYER) {
DamagedPlayerEvent damageEvent = (DamagedPlayerEvent)event;
if (game.getPlayer(this.getControllerId()).hasOpponent(damageEvent.getPlayerId(), game)) {