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
|
|
@ -10,8 +10,8 @@ import java.util.UUID;
|
|||
*/
|
||||
public class EnchantPlayerEvent extends GameEvent {
|
||||
|
||||
// TODO: investigate why source is provided but not used at all?
|
||||
public EnchantPlayerEvent(UUID targetId, Permanent attachment, Ability source) {
|
||||
super(GameEvent.EventType.ENCHANT_PLAYER, targetId, null, attachment.getControllerId());
|
||||
this.setSourceId(attachment.getId());
|
||||
super(GameEvent.EventType.ENCHANT_PLAYER, targetId, attachment.getId(), attachment.getControllerId());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue