fixed a bug that allowed players to join all factiosn as long as they got invited first

This commit is contained in:
Olivier Gagnon 2018-05-27 01:48:10 -04:00
parent 25be246a57
commit b0d78dc532

@ -738,9 +738,9 @@ let Engine = {
clickListener:()=>{
joinFaction(Factions[factionName]);
for (var i = 0; i < Player.factionInvitations.length; ++i) {
if (Player.factionInvitations[i] == factionName) {
if (Player.factionInvitations[i] == factionName || Factions[Player.factionInvitations[i]].isBanned) {
Player.factionInvitations.splice(i, 1);
break;
i--;
}
}
Engine.displayFactionsInfo();