mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
* Caged Sun - Fixed that the mana adding ability did not work.
This commit is contained in:
parent
7c8d5ea1be
commit
58a01cac2a
1 changed files with 1 additions and 4 deletions
|
@ -169,10 +169,7 @@ class CagedSunTriggeredAbility extends TriggeredManaAbility {
|
|||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.MANA_ADDED && event.getPlayerId().equals(controllerId)) {
|
||||
Permanent permanent = game.getPermanent(event.getTargetId());
|
||||
if (permanent == null) {
|
||||
permanent = (Permanent) game.getLastKnownInformation(event.getTargetId(), Zone.BATTLEFIELD);
|
||||
}
|
||||
Permanent permanent = game.getPermanentOrLKIBattlefield(event.getSourceId());
|
||||
if (permanent != null && permanent.getCardType().contains(CardType.LAND)) {
|
||||
ObjectColor color = (ObjectColor) game.getState().getValue(this.sourceId + "_color");
|
||||
if (color != null && event.getData().contains(color.toString())) {
|
||||
|
|
Loading…
Reference in a new issue