mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
[ONE] Implement Bloated Contaminator
This commit is contained in:
parent
c1d425ba09
commit
4acd7d6604
5 changed files with 95 additions and 0 deletions
|
|
@ -2178,6 +2178,13 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
player.gainLife(actualDamage, game, source);
|
||||
}
|
||||
}
|
||||
if (combatDamage && sourceAbilities != null && sourceAbilities.containsClass(ToxicAbility.class)) {
|
||||
int counters = CardUtil
|
||||
.castStream(sourceAbilities.stream(), ToxicAbility.class)
|
||||
.mapToInt(ToxicAbility::getAmount)
|
||||
.sum();
|
||||
addCounters(CounterType.POISON.createInstance(counters), sourceControllerId, source, game);
|
||||
}
|
||||
// Unstable ability - Earl of Squirrel
|
||||
if (sourceAbilities != null && sourceAbilities.containsKey(SquirrellinkAbility.getInstance().getId())) {
|
||||
Player player = game.getPlayer(sourceControllerId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue