mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-27 07:26:23 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user