fixed being able to team with self in UHC
fixed eventgame admin toggle
This commit is contained in:
parent
c34cac42ee
commit
bd58c06017
@ -824,7 +824,7 @@ public class EventGame extends SoloGame
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Manager.GetGameHostManager().isAdmin(target, false))
|
if (!Manager.GetGameHostManager().isAdmin(target, false))
|
||||||
Manager.GetGameHostManager().giveAdmin(target);
|
Manager.GetGameHostManager().giveAdmin(target);
|
||||||
else
|
else
|
||||||
Manager.GetGameHostManager().removeAdmin(target.getName());
|
Manager.GetGameHostManager().removeAdmin(target.getName());
|
||||||
|
@ -1710,6 +1710,9 @@ public class UHC extends TeamGame
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event.getPlayer().equals(target))
|
||||||
|
return;
|
||||||
|
|
||||||
selectTeamMate(event.getPlayer(), target);
|
selectTeamMate(event.getPlayer(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user