fixed being able to team with self in UHC

fixed eventgame admin toggle
This commit is contained in:
Mini-Chiss 2015-05-13 13:32:20 -05:00
parent c34cac42ee
commit bd58c06017
2 changed files with 4 additions and 1 deletions

View File

@ -824,7 +824,7 @@ public class EventGame extends SoloGame
return;
}
if (Manager.GetGameHostManager().isAdmin(target, false))
if (!Manager.GetGameHostManager().isAdmin(target, false))
Manager.GetGameHostManager().giveAdmin(target);
else
Manager.GetGameHostManager().removeAdmin(target.getName());

View File

@ -1710,6 +1710,9 @@ public class UHC extends TeamGame
return;
}
if (event.getPlayer().equals(target))
return;
selectTeamMate(event.getPlayer(), target);
}