Pelf

Pelf guardian spirit

Apr 26th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.90 KB | None | 0 0
  1. diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp
  2. index c9bae9e..753fb50 100644
  3. --- a/src/server/game/Spells/Auras/SpellAuras.cpp
  4. +++ b/src/server/game/Spells/Auras/SpellAuras.cpp
  5. @@ -1405,33 +1405,6 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster,
  6.                          }
  7.                      }
  8.                  }
  9. -                switch(GetId())
  10. -                {
  11. -                    case 47788: // Guardian Spirit
  12. -                        if (removeMode != AURA_REMOVE_BY_EXPIRE)
  13. -                            break;
  14. -                        if (caster->GetTypeId() != TYPEID_PLAYER)
  15. -                            break;
  16. -
  17. -                        Player *player = caster->ToPlayer();
  18. -                        // Glyph of Guardian Spirit
  19. -                        if (AuraEffect * aurEff = player->GetAuraEffect(63231, 0))
  20. -                        {
  21. -                            if (!player->HasSpellCooldown(47788))
  22. -                                break;
  23. -
  24. -                            player->RemoveSpellCooldown(GetSpellProto()->Id, true);
  25. -                            player->AddSpellCooldown(GetSpellProto()->Id, 0, uint32(time(NULL) + aurEff->GetAmount()));
  26. -
  27. -                            WorldPacket data(SMSG_SPELL_COOLDOWN, 8+1+4+4);
  28. -                            data << uint64(player->GetGUID());
  29. -                            data << uint8(0x0);                                     // flags (0x1, 0x2)
  30. -                            data << uint32(GetSpellProto()->Id);
  31. -                            data << uint32(aurEff->GetAmount()*IN_MILLISECONDS);
  32. -                            player->SendDirectMessage(&data);
  33. -                        }
  34. -                        break;
  35. -                }
  36.                  break;
  37.              case SPELLFAMILY_ROGUE:
  38.                  // Remove Vanish on stealth remove
Advertisement
Add Comment
Please, Sign In to add comment