forked from External/mage
rename from battlefield to graveyard event comparing to .isDiesEvent
This commit is contained in:
parent
056226d83c
commit
c45fe5c701
37 changed files with 37 additions and 44 deletions
|
|
@ -48,7 +48,7 @@ public class RecoverAbility extends TriggeredAbilityImpl {
|
|||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
ZoneChangeEvent zEvent = (ZoneChangeEvent) event;
|
||||
if (zEvent.getFromZone() == Zone.BATTLEFIELD && zEvent.getToZone() == Zone.GRAVEYARD) {
|
||||
if (zEvent.isDiesEvent()) {
|
||||
if (zEvent.getTarget().isOwnedBy(getControllerId())
|
||||
&& zEvent.getTarget().isCreature()
|
||||
&& !zEvent.getTarget().getId().equals(getSourceId())) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue