Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. // Custom requirements (not listed in procEx) Warning! damage dealing after this
  2. // Custom triggered spells
  3. switch (auraSpellInfo->Id)
  4. {
  5. //- Valhalla Custom Requirements
  6. case 124487:// Zen Focus
  7. case 122280:// Healing Elixirs
  8. case 12598: // Counterspell
  9. return false;
  10. //- TrinityCore Custom Requirements
  11. // Unyielding Knights (item exploit 29108\29109)
  12. case 38164:
  13. {
  14. if (!victim || victim->GetEntry() != 19457) // Proc only if your target is Grillok
  15. return false;
  16. break;
  17. }
  18. // Cheat Death
  19. case 28845:
  20. {
  21. // When your health drops below 20%
  22. if (HealthBelowPctDamaged(20, damage) || HealthBelowPct(20))
  23. return false;
  24. break;
  25. }
  26. // Greater Heal Refund (Avatar Raiment set)
  27. case 37594:
  28. {
  29. if (!victim || !victim->IsAlive())
  30. return false;
  31.  
  32. // Doesn't proc if target already has full health
  33. if (victim->IsFullHealth())
  34. return false;
  35. // If your Greater Heal brings the target to full health, you gain $37595s1 mana.
  36. if (victim->GetHealth() + damage < victim->GetMaxHealth())
  37. return false;
  38. break;
  39. }
  40. // Decimation
  41. case 108869:
  42. // Can proc only if target has hp below 25%
  43. if (!victim || !victim->HealthBelowPct(triggeredByAura->GetSpellEffectInfo()->CalcValue()))
  44. return false;
  45. break;
  46. // Deathbringer Saurfang - Blood Beast's Blood Link
  47. case 72176:
  48. basepoints0 = 3;
  49. break;
  50. // Professor Putricide - Ooze Spell Tank Protection
  51. case 71770:
  52. if (victim)
  53. victim->CastSpell(victim, trigger_spell_id, true); // EffectImplicitTarget is self
  54. return true;
  55. case 2823: // Deadly Poison
  56. case 3408: // Crippling Poison
  57. case 8679: // Wound Poison
  58. case 108211:// Leeching Poison
  59. {
  60. if (GetTypeId() != TYPEID_PLAYER)
  61. return false;
  62.  
  63. // Don't trigger poison if no damage dealed (except for absorb)
  64. if (!damage && !(procEx & PROC_EX_ABSORB))
  65. return false;
  66.  
  67. break;
  68. }
  69. default:
  70. break;
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement