Card isInZone function
The isInZone function in the card class is not really doing what it's supposed to do.
It's used a lot to test whether a card is still on the battlefield (or in a nother zone). When a card object is outdated (like the source of an ability or trigger waiting on the stack) it will still pretend to be in the previous zone even though the current card has benn destroyed or otherwise changed zone.
When i search for "isInPlay()" in our code i get 73 results and nearly all of them do not function properly with this isInZone function.
@Max: What was the reason to change the isInZone function (r22432)?
For reference, here is the old version:
It's used a lot to test whether a card is still on the battlefield (or in a nother zone). When a card object is outdated (like the source of an ability or trigger waiting on the stack) it will still pretend to be in the previous zone even though the current card has benn destroyed or otherwise changed zone.
When i search for "isInPlay()" in our code i get 73 results and nearly all of them do not function properly with this isInZone function.
@Max: What was the reason to change the isInZone function (r22432)?
For reference, here is the old version:
- Code: Select all
public boolean isInZone(final ZoneType zone) {
return getGame().isCardInZone(this, zone);
}