[DiscordArchive] Maybe something with `SpellHistory::ModifyCooldown()` in `SpellHistory.cpp`?
[DiscordArchive] Maybe something with `SpellHistory::ModifyCooldown()` in `SpellHistory.cpp`?
Archived author: Srzm • Posted: 2023-09-21T10:25:32.130000+00:00
Original source
Maybe something with `SpellHistory::ModifyCooldown()` in `SpellHistory.cpp`?
Archived author: Srzm • Posted: 2023-09-21T10:35:30.722000+00:00
Original source
The T10 2-piece bonus of the elemental shaman uses this function:
*"Lightning Bolt and Chain Lightning reduce the remaining cooldown on Elemental Mastery by 2sec."*
`target->GetSpellHistory()->ModifyCooldown(SPELL_SHAMAN_ELEMENTAL_MASTERY, -aurEff->GetAmount());`
Looks close enough to what you're asking?
Archived author: leonis35 • Posted: 2023-09-21T10:37:11.283000+00:00
Original source
I tried this but you can only modify SPELL cooldown with this command, not item. And i want to modify group of item cooldown, not just one.
Archived author: leonis35 • Posted: 2023-09-21T10:43:02.251000+00:00
Original source
On the Db Item_template there is a spellcategory (4 for potions) and 60000 on spellcategorycooldown. So i want to start the cooldown for all items in this catégory and reduce them by 1 second.