replace [list].size() == 0 and [string].length() == 0 to use .isEmpty() instead

This commit is contained in:
ingmargoudt 2016-09-14 15:27:03 +02:00
parent 3612332607
commit 3128bd2b4b
48 changed files with 90 additions and 109 deletions

View file

@ -54,7 +54,7 @@ public class BeginningOfPreCombatMainTriggeredAbility extends TriggeredAbilityIm
case YOU:
boolean yours = event.getPlayerId().equals(this.controllerId);
if (yours && setTargetPointer) {
if (getTargets().size() == 0) {
if (getTargets().isEmpty()) {
for (Effect effect : this.getEffects()) {
effect.setTargetPointer(new FixedTarget(event.getPlayerId()));
}