mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
[M15] Added The Chain Veil Artifact.
This commit is contained in:
parent
1b3d31c670
commit
98e3fe9bde
3 changed files with 197 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue