mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Fix slection not clearing after setting ranks
This commit is contained in:
@@ -707,7 +707,9 @@ addButton('setRanks',
|
|||||||
for _,playerName in pairs(selected[player.index]) do
|
for _,playerName in pairs(selected[player.index]) do
|
||||||
p=game.players[playerName]
|
p=game.players[playerName]
|
||||||
if getRank(player).power < getRank(p).power and rank.power > getRank(player).power then
|
if getRank(player).power < getRank(p).power and rank.power > getRank(player).power then
|
||||||
giveRank(p,rank,player)
|
giveRank(p,rank,player)
|
||||||
|
clearSelection(player)
|
||||||
|
drawPlayerTable(player, frame.parent.parent, false, true, {})
|
||||||
else
|
else
|
||||||
player.print('You can not edit '..p.name.."'s rank there rank is too high (or the rank you have slected is above you)")
|
player.print('You can not edit '..p.name.."'s rank there rank is too high (or the rank you have slected is above you)")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user