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,7 +1,7 @@
|
|||
|
||||
|
||||
package mage.game.events;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
|
|
@ -12,8 +12,8 @@ public class NumberOfTriggersEvent extends GameEvent {
|
|||
|
||||
private final GameEvent sourceEvent;
|
||||
|
||||
public NumberOfTriggersEvent(UUID controllerOfAbilityId, UUID sourceOfTrigger, GameEvent sourceEvent) {
|
||||
super(EventType.NUMBER_OF_TRIGGERS, null, sourceOfTrigger, controllerOfAbilityId);
|
||||
public NumberOfTriggersEvent(Ability triggeredAbility, GameEvent sourceEvent) {
|
||||
super(GameEvent.EventType.NUMBER_OF_TRIGGERS, null, triggeredAbility, triggeredAbility.getControllerId());
|
||||
this.sourceEvent = sourceEvent;
|
||||
this.amount = 1; // Number of times to trigger. Panharmonicon can change this.
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue