forked from External/mage
Equals should be compared with == but not equals()
This commit is contained in:
parent
1f9b51d833
commit
d93061c0bc
175 changed files with 348 additions and 344 deletions
|
|
@ -54,7 +54,7 @@ public class ZoneChangeTriggeredAbility extends TriggeredAbilityImpl {
|
|||
|
||||
public ZoneChangeTriggeredAbility(Zone worksInZone, Zone fromZone, Zone toZone, Effect effect, String rule, boolean optional) {
|
||||
super(worksInZone, effect, optional);
|
||||
if (fromZone.equals(Zone.BATTLEFIELD)) {
|
||||
if (fromZone == Zone.BATTLEFIELD) {
|
||||
setLeavesTheBattlefieldTrigger(true);
|
||||
}
|
||||
this.fromZone = fromZone;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue