forked from External/mage
clean all usage of GameEvent::setSourceId
This commit is contained in:
parent
8771d9b7f5
commit
868cd4d8fd
40 changed files with 114 additions and 100 deletions
|
|
@ -17,13 +17,11 @@ public class TargetEvent extends GameEvent {
|
|||
* @param sourceControllerId can be different from real controller (example: ability instructs another player to targeting)
|
||||
*/
|
||||
public TargetEvent(Card target, UUID sourceId, UUID sourceControllerId) {
|
||||
super(GameEvent.EventType.TARGET, target.getId(), null, sourceControllerId);
|
||||
this.setSourceId(sourceId);
|
||||
super(GameEvent.EventType.TARGET, target.getId(), sourceId, sourceControllerId);
|
||||
}
|
||||
|
||||
public TargetEvent(Player target, UUID sourceId, UUID sourceControllerId) {
|
||||
super(GameEvent.EventType.TARGET, target.getId(), null, sourceControllerId);
|
||||
this.setSourceId(sourceId);
|
||||
super(GameEvent.EventType.TARGET, target.getId(), sourceId, sourceControllerId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue