Guest User

Untitled

a guest
Dec 10th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.10 KB | None | 0 0
  1. diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
  2. index 33a138a..7d74aac 100755
  3. --- a/src/server/game/Entities/Player/Player.cpp
  4. +++ b/src/server/game/Entities/Player/Player.cpp
  5. @@ -4238,13 +4238,17 @@ void Player::RemoveArenaSpellCooldowns(bool removeActivePetCooldowns)
  6.      for (itr = m_spellCooldowns.begin(); itr != m_spellCooldowns.end(); itr = next)
  7.      {
  8.          next = itr;
  9.          ++next;
  10.          SpellInfo const* entry = sSpellMgr->GetSpellInfo(itr->first);
  11. +
  12. +        if(!entry) continue;
  13. +        if(entry->Id == 33060) continue; //mr pinchy
  14. +        if(entry->Id == 26265) continue; //create elune stone
  15. +
  16.          // check if spellentry is present and if the cooldown is less or equal to 10 min
  17. -        if (entry &&
  18. -            entry->RecoveryTime <= 10 * MINUTE * IN_MILLISECONDS &&
  19. +        if (entry->RecoveryTime <= 10 * MINUTE * IN_MILLISECONDS &&
  20.              entry->CategoryRecoveryTime <= 10 * MINUTE * IN_MILLISECONDS)
  21.          {
  22.              // remove & notify
  23.              RemoveSpellCooldown(itr->first, true);
  24.          }
Add Comment
Please, Sign In to add comment