Fixed to do the check of existing abilities always by rule text. Added a new abilities.containsRule() method to check by rule, that's sometimes needed. To check always by rule text leaded to bugs during applying copy effects.

This commit is contained in:
LevelX2 2013-02-21 00:15:11 +01:00
parent 768cf365b9
commit 391c3db02e
5 changed files with 46 additions and 2 deletions

View file

@ -372,4 +372,9 @@ public class StackAbility implements StackObject, Ability {
public void setRuleAtTheTop(boolean ruleAtTheTop) {
this.ability.setRuleAtTheTop(ruleAtTheTop);
}
@Override
public UUID getOriginalId() {
return this.ability.getOriginalId();
}
}