refactor: replacement effects don't use apply method now (#11484)

This commit is contained in:
xenohedron 2023-11-28 02:17:28 -05:00 committed by GitHub
parent 8ad3238109
commit 05e2cf11e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
275 changed files with 171 additions and 1545 deletions

View file

@ -52,11 +52,6 @@ class AjaniSteadfastPreventEffect extends PreventionEffectImpl {
return false;
}
@Override
public boolean apply(Game game, Ability source) {
return true;
}
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
if (event.getType() == GameEvent.EventType.DAMAGE_PLAYER

View file

@ -95,11 +95,6 @@ class JayaBallardReplacementEffect extends ReplacementEffectImpl {
return new JayaBallardReplacementEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
return true;
}
@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
Player controller = game.getPlayer(source.getControllerId());

View file

@ -70,11 +70,6 @@ class SerraTheBenevolentEmblemEffect extends ReplacementEffectImpl {
return false;
}
@Override
public boolean apply(Game game, Ability source) {
return false;
}
@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
return false;