Added the "temp-leader" back (!leader set now raises the rank, and is not visual-only)
!loot add also works for players without accounts now (i.e. outside the alliance)
This commit is contained in:
@@ -148,7 +148,7 @@ class LootController:
|
||||
def loot_add_to_cmd(self, request, _, item_index: int):
|
||||
main = self.alts_service.get_account(request.sender.char_id)
|
||||
if self.raid_controller:
|
||||
raider: Raider = self.raid_controller.is_in_raid(main.char_id)
|
||||
raider: Raider = self.raid_controller.is_in_raid(main.get("char_id", -1))
|
||||
if type(raider) == Raider:
|
||||
if not raider.is_active:
|
||||
self.bot.send_mass_message(request.sender.char_id,
|
||||
@@ -165,7 +165,7 @@ class LootController:
|
||||
if old_item.get_item_str() == loot_item.get_item_str():
|
||||
name = "You have" if request.channel == "msg" else request.sender.name
|
||||
self.bot.send_mass_message(request.sender.char_id,
|
||||
"%s already added to %s." % (name, loot_item.get_item_str()))
|
||||
f"{name} already added to {loot_item.get_item_str()}.")
|
||||
old_item.bidders.remove(request.sender.name)
|
||||
|
||||
loot_item.bidders.append(request.sender.name)
|
||||
|
||||
Reference in New Issue
Block a user