mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Some minor changes.
This commit is contained in:
parent
678a46dba8
commit
79f8617cd3
4 changed files with 15 additions and 15 deletions
|
|
@ -24,15 +24,13 @@
|
|||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
*/
|
||||
package mage.abilities.condition.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.game.Game;
|
||||
|
||||
|
||||
/**
|
||||
* Checks if permanent was paid tribute to as it entered the battlefield
|
||||
*
|
||||
|
|
@ -42,7 +40,8 @@ public class TributeNotPaidCondition implements Condition {
|
|||
|
||||
private static TributeNotPaidCondition fInstance = null;
|
||||
|
||||
private TributeNotPaidCondition() {}
|
||||
private TributeNotPaidCondition() {
|
||||
}
|
||||
|
||||
public static Condition getInstance() {
|
||||
if (fInstance == null) {
|
||||
|
|
@ -53,9 +52,9 @@ public class TributeNotPaidCondition implements Condition {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Object tribute = game.getState().getValue(new StringBuilder("tributeValue").append(source.getSourceId()).toString());
|
||||
Object tribute = game.getState().getValue("tributeValue" + source.getSourceId());
|
||||
if (tribute != null) {
|
||||
return ((String)tribute).equals("no");
|
||||
return ((String) tribute).equals("no");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue