Warlock Soulstone/Soulshard hotfix (#1452)

Hello everybody,

This PR is to address issues #1439 and #1451.

I added a 1 second cooldown to the createsoulshard action, as the warlock wouldn't ever use more than 1 soul shard per second.

I also added a cooldown check to the soulstone trigger, so it doesn't simply try to use the ss healer, ss self, ss tank, or ss master if the soulstone is present in the inventory.  I checked the logs, and was able to recreate the issue of #1451 - the bot was shifting targets over and over again, and that was because previously the trigger was just checking to see if a soulstone was present at all. Now it won't fire if it's on cooldown.
This commit is contained in:
ThePenguinMan96
2025-07-19 09:25:56 -07:00
committed by GitHub
parent 551c698e37
commit d6b7693b8b
3 changed files with 21 additions and 2 deletions

View File

@@ -47,6 +47,8 @@ public:
CreateSoulShardAction(PlayerbotAI* botAI) : Action(botAI, "create soul shard") {}
bool Execute(Event event) override;
bool isUseful() override;
private:
uint32 lastCreateSoulShardTime = 0; // Per-bot cooldown timer in ms
};
class DestroySoulShardAction : public InventoryAction