[DiscordArchive] whats the hook for OnSpecChange?
[DiscordArchive] whats the hook for OnSpecChange?
Archived author: OUTRAKE • Posted: 2024-11-17T13:09:42.869000+00:00
Original source
whats the hook for OnSpecChange?
Archived author: OUTRAKE • Posted: 2024-11-17T13:11:58.021000+00:00
Original source
```
void OnSpellCast(Player* player, Spell* spell, bool /*skipCheck*/) override
{
// 63644 - Activate Secondary Spec
// 63645 - Activate Primary Spec
if (spell && (spell->GetSpellInfo()->Id == 63644 || spell->GetSpellInfo()->Id == 63645))
{
ApplyBuffs(player);
}
}
```