clean all usage of GameEvent::setSourceId

This commit is contained in:
Susucre 2024-04-28 14:21:43 +02:00
parent 8771d9b7f5
commit 868cd4d8fd
40 changed files with 114 additions and 100 deletions

View file

@ -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);
}
/**