Warlock Soul Shard Hotfix (#1442)

Hello everyone,

This PR is to address an issue that was posted recently - a player has shown that soul shards are being created in excess, spamming the player's chat log. I am adding an isuseful() check to the createsoulshard action, so it will never be executed if they have more than 5 soul shards.

Also, out of an abundance of caution, I am lowering the cap for CastDrainSoulAction::isUseful() to 20 from 32. That way, if for some reason the warlock has 20+ shards, it won't attempt to collect any more / use drain soul.
This commit is contained in:
ThePenguinMan96
2025-07-15 06:54:04 -07:00
committed by GitHub
parent 761ef634da
commit 45694ad6e6
2 changed files with 17 additions and 2 deletions

View File

@@ -46,6 +46,7 @@ class CreateSoulShardAction : public Action
public:
CreateSoulShardAction(PlayerbotAI* botAI) : Action(botAI, "create soul shard") {}
bool Execute(Event event) override;
bool isUseful() override;
};
class DestroySoulShardAction : public InventoryAction