mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
Fixed equal or == errors -- 23 cards and more (see #4407)
This commit is contained in:
parent
15fa8fa124
commit
c24ba742f6
36 changed files with 115 additions and 75 deletions
|
|
@ -2482,4 +2482,22 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
}
|
||||
return randomOpponentId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Player obj = (Player) o;
|
||||
if (this.getId() == null || obj.getId() == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return this.getId().equals(obj.getId());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue