mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Merge pull request #5032 from NoahGleason/saproling-infestation
Implement Saproling Infestation (INV)
This commit is contained in:
commit
cdf8f615e3
4 changed files with 72 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ import mage.constants.AbilityType;
|
|||
import mage.constants.Outcome;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.players.Player;
|
||||
|
||||
/**
|
||||
|
|
@ -152,6 +153,7 @@ public class KickerAbility extends StaticAbility implements OptionalAdditionalSo
|
|||
amount += activations.get(key);
|
||||
}
|
||||
activations.put(key, amount);
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.KICKED, source.getSourceId(), source.getSourceId(), source.getControllerId()));
|
||||
}
|
||||
|
||||
private String getActivationKey(Ability source, String costText, Game game) {
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ public class GameEvent implements Serializable {
|
|||
MIRACLE_CARD_REVEALED,
|
||||
MADNESS_CARD_EXILED,
|
||||
INVESTIGATED,
|
||||
KICKED,
|
||||
DISCARD_CARD,
|
||||
DISCARDED_CARD,
|
||||
CYCLE_CARD, CYCLED_CARD,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue