mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Merge branch 'manalki' into 'master'
ManaSpent: check source at time it produced See merge request core-developers/forge!5158
This commit is contained in:
@@ -20,8 +20,10 @@ package forge.game.mana;
|
||||
import forge.card.MagicColor;
|
||||
import forge.card.mana.ManaAtom;
|
||||
import forge.game.card.Card;
|
||||
import forge.game.card.CardUtil;
|
||||
import forge.game.spellability.AbilityManaPart;
|
||||
import forge.game.spellability.SpellAbility;
|
||||
import forge.game.zone.ZoneType;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -71,7 +73,7 @@ public class Mana {
|
||||
public Mana(final byte color, final Card source, final AbilityManaPart manaAbility) {
|
||||
this.color = color;
|
||||
this.manaAbility = manaAbility;
|
||||
this.sourceCard = source;
|
||||
this.sourceCard = source.isInZone(ZoneType.Battlefield) ? CardUtil.getLKICopy(source) : source.getGame().getChangeZoneLKIInfo(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user