Commit 86c1b27 1 parent 0b469ab commit 86c1b27 Copy full SHA for 86c1b27
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3363,12 +3363,14 @@ namespace LuaPlayer
3363
3363
bool update = E->CHECKVAL <bool >(3 , true );
3364
3364
(void )update; // ensure that the variable is referenced in order to pass compiler checks
3365
3365
3366
+ #if ELUNA_EXPANSION < EXP_RETAIL
3366
3367
player->GetSpellHistory ()->ResetCooldowns ([category](SpellHistory::CooldownStorageType::iterator itr) -> bool
3367
3368
{
3368
- #if ELUNA_EXPANSION < EXP_RETAIL
3369
3369
SpellInfo const * spellInfo = sSpellMgr ->GetSpellInfo (itr->first );
3370
3370
#else
3371
- SpellInfo const * spellInfo = sSpellMgr ->GetSpellInfo (itr->first , DIFFICULTY_NONE);
3371
+ player->GetSpellHistory ()->ResetCooldowns ([category](SpellHistory::CooldownEntry const & cooldownEntry) -> bool
3372
+ {
3373
+ SpellInfo const * spellInfo = sSpellMgr ->GetSpellInfo (cooldownEntry.SpellId , DIFFICULTY_NONE);
3372
3374
#endif
3373
3375
return spellInfo && spellInfo->GetCategory () == category;
3374
3376
}, update);
You can’t perform that action at this time.
0 commit comments