forked from External/mage
[STX] Implemented Strict Proctor
This commit is contained in:
parent
3ba320257b
commit
f9467d5142
18 changed files with 140 additions and 27 deletions
|
|
@ -1742,9 +1742,10 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
* For internal use only
|
||||
*
|
||||
* @param ability
|
||||
* @param triggeringEvent
|
||||
*/
|
||||
@Override
|
||||
public void addTriggeredAbility(TriggeredAbility ability) {
|
||||
public void addTriggeredAbility(TriggeredAbility ability, GameEvent triggeringEvent) {
|
||||
if (ability.getControllerId() == null) {
|
||||
String sourceName = "no sourceId";
|
||||
if (ability.getSourceId() != null) {
|
||||
|
|
@ -1770,6 +1771,7 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
if (newAbility.getSourceObjectZoneChangeCounter() == 0) {
|
||||
newAbility.setSourceObjectZoneChangeCounter(getState().getZoneChangeCounter(ability.getSourceId()));
|
||||
}
|
||||
newAbility.setTriggerEvent(triggeringEvent);
|
||||
state.addTriggeredAbility(newAbility);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue