forked from External/mage
* Myth Unbound - Fixed the two working abilities(fixe #5347).
This commit is contained in:
parent
15ba067be5
commit
e938f91e3e
5 changed files with 133 additions and 8 deletions
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
package mage.abilities.common;
|
||||
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
|
|
@ -50,8 +48,9 @@ public class ZoneChangeAllTriggeredAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
ZoneChangeEvent zEvent = (ZoneChangeEvent)event;
|
||||
if ((fromZone == null || zEvent.getFromZone() == fromZone) && (toZone == null || zEvent.getToZone() == toZone)) {
|
||||
ZoneChangeEvent zEvent = (ZoneChangeEvent) event;
|
||||
if ((fromZone == null || fromZone.match(zEvent.getFromZone()))
|
||||
&& (toZone == null || toZone.match(zEvent.getToZone()))) {
|
||||
Permanent perm;
|
||||
if (zEvent.getTarget() != null) {
|
||||
perm = zEvent.getTarget();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue