Skip to content

Commit

Permalink
bug fixes - 2.24.1
Browse files Browse the repository at this point in the history
  • Loading branch information
flaree committed Feb 10, 2025
1 parent 649a652 commit f1b2adf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ballsdex/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.24.0"
__version__ = "2.24.1"
2 changes: 1 addition & 1 deletion ballsdex/core/image_generator/image_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def draw_card(ball_instance: "BallInstance", media_path: str = "./admin_panel/me
ball_credits = ball.credits
card_name = ball.cached_regime.name
if special_image := ball_instance.special_card:
card_name = getattr(ball_instance.specialcard, card_name)
card_name = getattr(ball_instance.specialcard, "name", card_name)
image = Image.open(media_path + special_image)
if ball_instance.specialcard and ball_instance.specialcard.credits:
ball_credits += f" • {ball_instance.specialcard.credits}"
Expand Down
9 changes: 2 additions & 7 deletions ballsdex/packages/balls/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,21 +610,16 @@ async def give(
countryball.description(short=True, include_emoji=True, bot=self.bot, is_trade=True)
+ f" (`{countryball.attack_bonus:+}%/{countryball.health_bonus:+}%`)"
)
mentions = []
if new_player.can_be_mentioned:
mentions.append(new_player.discord_id)
if old_player.can_be_mentioned:
mentions.append(old_player.discord_id)
if favorite:
await interaction.followup.send(
f"{interaction.user.mention}, you just gave the "
f"{settings.collectible_name} {cb_txt} to {user.mention}!",
allowed_mentions=discord.AllowedMentions(users=mentions),
allowed_mentions=discord.AllowedMentions(users=new_player.can_be_mentioned),
)
else:
await interaction.followup.send(
f"You just gave the {settings.collectible_name} {cb_txt} to {user.mention}!",
allowed_mentions=discord.AllowedMentions(users=mentions),
allowed_mentions=discord.AllowedMentions(users=new_player.can_be_mentioned),
)
await countryball.unlock()

Expand Down

0 comments on commit f1b2adf

Please sign in to comment.