* Vanishing - Fixed that the sacrifice works again if all time counters are removed.

This commit is contained in:
LevelX2 2014-12-02 15:45:53 +01:00
parent cb20981a7b
commit d4e2a34ddf

View file

@ -20,7 +20,7 @@ public class VanishingSacrificeAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getType() == GameEvent.EventType.COUNTER_REMOVED && event.getData().equals("Time") && event.getTargetId().equals(this.getSourceId())) {
if (event.getType() == GameEvent.EventType.COUNTER_REMOVED && event.getData().equals("time") && event.getTargetId().equals(this.getSourceId())) {
Permanent p = game.getPermanent(this.getSourceId());
if (p != null) {
return p.getCounters().getCount(CounterType.TIME) == 0;