mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
Choose a player at random - fixed that it wrongly choose same player (example: Scrambleverse, close #12679, close #13526);
Inniaz, the Gale Force - fixed that it wrongly choose left/right player (close #13526);
This commit is contained in:
parent
4ffb0ff014
commit
dcdf0ca4a5
2 changed files with 32 additions and 2 deletions
|
|
@ -82,8 +82,8 @@ public class CircularList<E> implements List<E>, Iterable<E>, Serializable {
|
|||
*/
|
||||
@Override
|
||||
public E get(int index) {
|
||||
if (list.size() > this.index) {
|
||||
return list.get(this.index);
|
||||
if (list.size() > index) {
|
||||
return list.get(index);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue