mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Enduring Scalelord - Fixed triggered ability not working for replcament effects adding counters to permenents entering the battlefield.
This commit is contained in:
parent
a7eb019986
commit
71825043c5
1 changed files with 5 additions and 2 deletions
|
@ -92,12 +92,15 @@ class EnduringScalelordTriggeredAbility extends TriggeredAbilityImpl {
|
|||
return event.getType() == GameEvent.EventType.COUNTERS_ADDED;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getData().equals(CounterType.P1P1.getName())) {
|
||||
Permanent permanent = game.getPermanentOrLKIBattlefield(event.getTargetId());
|
||||
return (!event.getTargetId().equals(this.getSourceId())
|
||||
if (permanent == null) {
|
||||
permanent = game.getPermanentEntering(event.getTargetId());
|
||||
}
|
||||
return (permanent != null
|
||||
&& !event.getTargetId().equals(this.getSourceId())
|
||||
&& permanent.getCardType().contains(CardType.CREATURE)
|
||||
&& permanent.getControllerId().equals(this.getControllerId()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue