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

@ -580,6 +580,11 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
@Override
public void setRuleAtTheTop(boolean ruleAtTheTop) {
this.ruleAtTheTop = ruleAtTheTop;
}
}
@Override
public UUID getOriginalId() {
return this.originalId;
}
}