forked from External/mage
* Now token's zcc uses same logic as card's zcc: enters to battlefield with +1 zcc instead +0 zcc * It can improve support of copied spells that store zcc related data (bug example: lost kicked status for copied spell/token); * Kicker abilities - improved support with copied creature spells (example: Verazol, the Split Current, #7431, #7433); * Refactor: simplified kicker code;
36 lines
837 B
Java
36 lines
837 B
Java
package mage.abilities.dynamicvalue.common;
|
|
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.dynamicvalue.DynamicValue;
|
|
import mage.abilities.effects.Effect;
|
|
import mage.abilities.keyword.KickerAbility;
|
|
import mage.game.Game;
|
|
|
|
/**
|
|
* Find permanent/spell kicked stats, can be used in ETB effects.
|
|
*
|
|
* @author LevelX2
|
|
*/
|
|
public enum MultikickerCount implements DynamicValue {
|
|
instance;
|
|
|
|
@Override
|
|
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
|
return KickerAbility.getSourceObjectKickedCount(game, sourceAbility);
|
|
}
|
|
|
|
@Override
|
|
public MultikickerCount copy() {
|
|
return MultikickerCount.instance;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "a";
|
|
}
|
|
|
|
@Override
|
|
public String getMessage() {
|
|
return "time it was kicked";
|
|
}
|
|
}
|