This commit is contained in:
Oleg Agafonov 2021-09-25 18:09:21 +04:00
parent b895611c4d
commit 95b782d519
5 changed files with 180 additions and 52 deletions

View file

@ -2,6 +2,7 @@ package mage.game.events;
import mage.abilities.Ability;
import mage.cards.Card;
import mage.players.Player;
import java.util.UUID;
@ -20,6 +21,11 @@ public class TargetEvent extends GameEvent {
this.setSourceId(sourceId);
}
public TargetEvent(Player target, UUID sourceId, UUID sourceControllerId) {
super(GameEvent.EventType.TARGET, target.getId(), null, sourceControllerId);
this.setSourceId(sourceId);
}
/**
* @param targetId
* @param source