Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Maybe something with `SpellHistory::ModifyCooldown()` in `SpellHistory.cpp`?

[DiscordArchive] Maybe something with `SpellHistory::ModifyCooldown()` in `SpellHistory.cpp`?

[DiscordArchive] Maybe something with `SpellHistory::ModifyCooldown()` in `SpellHistory.cpp`?

rektbyfaith
Administrator
0
09-21-2023, 10:25 AM
#1
Archived author: Srzm • Posted: 2023-09-21T10:25:32.130000+00:00
Original source

Maybe something with `SpellHistory::ModifyCooldown()` in `SpellHistory.cpp`?
rektbyfaith
09-21-2023, 10:25 AM #1

Archived author: Srzm • Posted: 2023-09-21T10:25:32.130000+00:00
Original source

Maybe something with `SpellHistory::ModifyCooldown()` in `SpellHistory.cpp`?

rektbyfaith
Administrator
0
09-21-2023, 10:35 AM
#2
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?
rektbyfaith
09-21-2023, 10:35 AM #2

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?

rektbyfaith
Administrator
0
09-21-2023, 10:37 AM
#3
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.
rektbyfaith
09-21-2023, 10:37 AM #3

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.

rektbyfaith
Administrator
0
09-21-2023, 10:43 AM
#4
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.
rektbyfaith
09-21-2023, 10:43 AM #4

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.

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)