forked from External/mage
revert the GameEvent::setSourceId removal
xenodron mentionned that one of the use of setSourceId is to more easily find the Event that use non-standard sourceId. So reverting the change made in a previous commit. It was a non-functional change meant to ease new BatchEvent sharing sourceId, but I'll use setSourceId instead there.
This commit is contained in:
parent
00556c4cf6
commit
95adcf0e9a
26 changed files with 88 additions and 63 deletions
|
|
@ -17,11 +17,13 @@ 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(), sourceId, sourceControllerId);
|
||||
super(GameEvent.EventType.TARGET, target.getId(), null, sourceControllerId);
|
||||
this.setSourceId(sourceId);
|
||||
}
|
||||
|
||||
public TargetEvent(Player target, UUID sourceId, UUID sourceControllerId) {
|
||||
super(GameEvent.EventType.TARGET, target.getId(), sourceId, sourceControllerId);
|
||||
super(GameEvent.EventType.TARGET, target.getId(), null, sourceControllerId);
|
||||
this.setSourceId(sourceId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue