Advertisement
Guest User

Untitled

a guest
Jul 1st, 2017
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.46 KB | None | 0 0
  1. Author: reeshack <richard.galis@gmail.com>  2010-11-30 16:50:53
  2. Committer: reeshack <richard.galis@gmail.com>  2010-11-30 16:50:53
  3. Parent: d11a2b6907c44995452125e293c879b476ae7e7e (typo)
  4. Branches: master, remotes/origin/master
  5. Follows: 333a
  6. Precedes:
  7.  
  8.     [pr980] Handle weapon switch gcd by casting the cooldown spell
  9.    
  10.     Signed-off-by: reeshack <richard.galis@gmail.com>
  11.  
  12. ----------------------------- src/game/Player.cpp -----------------------------
  13. index 5562d9f..b24d3f1 100644
  14. @@ -11393,13 +11393,14 @@ Item* Player::EquipItem( uint16 pos, Item *pItem, bool update )
  15.                      sLog.outError("Weapon switch cooldown spell %u couldn't be found in Spell.dbc", cooldownSpell);
  16.                  else
  17.                  {
  18. -
  19. -                    WorldPacket data(SMSG_SPELL_COOLDOWN, 8+1+4);
  20. +                    
  21. +                    CastSpell(this,cooldownSpell,false);
  22. +                    /*WorldPacket data(SMSG_SPELL_COOLDOWN, 8+1+4);
  23.                      data << uint64(GetGUID());
  24.                      data << uint8(1);
  25.                      data << uint32(cooldownSpell);
  26.                      data << uint32(0);
  27. -                    GetSession()->SendPacket(&data);
  28. +                    GetSession()->SendPacket(&data);*/
  29.                  }
  30.              }
  31.          }
  32. @@ -11597,12 +11598,13 @@ void Player::RemoveItem( uint8 bag, uint8 slot, bool update )
  33.                              else
  34.                              {
  35.  
  36. -                                WorldPacket data(SMSG_SPELL_COOLDOWN, 8+1+4);
  37. +                                CastSpell(this,cooldownSpell,false);
  38. +                                /*WorldPacket data(SMSG_SPELL_COOLDOWN, 8+1+4);
  39.                                  data << uint64(GetGUID());
  40.                                  data << uint8(1);
  41.                                  data << uint32(cooldownSpell);
  42.                                  data << uint32(0);
  43. -                                GetSession()->SendPacket(&data);
  44. +                                GetSession()->SendPacket(&data);*/
  45.                              }
  46.                          }
  47.                      }
  48.  
  49. --------------------------- src/shared/revision_nr.h ---------------------------
  50. index 140c99e..97dd467 100644
  51. @@ -1,6 +1,6 @@
  52.  #ifndef __REVISION_NR_H__
  53.  #define __REVISION_NR_H__
  54.   #define REVISION_NR "10707"
  55. - #define REVISION_VP "pr979"
  56. + #define REVISION_VP "pr980"
  57.   #define REVISION_VP_DATE "30.11.2010"
  58.  #endif // __REVISION_NR_H__
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement