forked from External/mage
fix couple of sonar issues
This commit is contained in:
parent
41357c15ff
commit
1cf6d99515
5 changed files with 21 additions and 30 deletions
|
|
@ -118,7 +118,7 @@ public class TurnMods extends ArrayList<TurnMod> {
|
|||
ListIterator<TurnMod> it = this.listIterator(this.size());
|
||||
while (it.hasPrevious()) {
|
||||
TurnMod turnMod = it.previous();
|
||||
if (turnMod.getExtraPhase() != null && turnMod.getPlayerId().equals(playerId) && turnMod.getExtraPhase() != null && (turnMod.getAfterPhase() == null || turnMod.getAfterPhase() == afterPhase)) {
|
||||
if (turnMod.getExtraPhase() != null && turnMod.getPlayerId().equals(playerId) && (turnMod.getAfterPhase() == null || turnMod.getAfterPhase() == afterPhase)) {
|
||||
it.remove();
|
||||
return turnMod;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue