forked from External/mage
Refactor: replaced sourceId by source and introduced source param in some methods;
This commit is contained in:
parent
2bb472607b
commit
db239a1055
3205 changed files with 7080 additions and 6795 deletions
|
|
@ -1,14 +1,16 @@
|
|||
package mage.game.events;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.game.permanent.token.Token;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class CreateTokenEvent extends GameEvent {
|
||||
|
||||
private Token token;
|
||||
|
||||
public CreateTokenEvent(UUID sourceId, UUID controllerId, int amount, Token token) {
|
||||
super(EventType.CREATE_TOKEN, null, sourceId, controllerId, amount, false);
|
||||
public CreateTokenEvent(Ability source, UUID controllerId, int amount, Token token) {
|
||||
super(GameEvent.EventType.CREATE_TOKEN, null, source, controllerId, amount, false);
|
||||
this.token = token;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue