mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
style fixes
filters should be declared `private static final`
This commit is contained in:
parent
a935045e1f
commit
78e1ef6271
21 changed files with 66 additions and 47 deletions
|
|
@ -10,12 +10,12 @@ import mage.game.Game;
|
|||
* @author stravant
|
||||
*/
|
||||
public class EffectKeyValue implements DynamicValue {
|
||||
|
||||
private final String key;
|
||||
private final String description;
|
||||
|
||||
public EffectKeyValue(String key) {
|
||||
this.key = key;
|
||||
this.description = key;
|
||||
this(key, key);
|
||||
}
|
||||
|
||||
public EffectKeyValue(String key, String description) {
|
||||
|
|
@ -25,11 +25,11 @@ public class EffectKeyValue implements DynamicValue {
|
|||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
return (Integer)effect.getValue(key);
|
||||
return (Integer) effect.getValue(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EffectKeyValue copy(){
|
||||
public EffectKeyValue copy() {
|
||||
return new EffectKeyValue(this.key, this.description);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,10 +9,11 @@ import mage.game.Game;
|
|||
*
|
||||
* @author notgreat
|
||||
*/
|
||||
public enum DefineByTriggerTargetAdjuster implements TargetAdjuster{
|
||||
public enum DefineByTriggerTargetAdjuster implements TargetAdjuster {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public void adjustTargets(Ability ability, Game game){
|
||||
public void adjustTargets(Ability ability, Game game) {
|
||||
//Do nothing
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue