Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Custom requirements (not listed in procEx) Warning! damage dealing after this
- // Custom triggered spells
- switch (auraSpellInfo->Id)
- {
- //- Valhalla Custom Requirements
- case 124487:// Zen Focus
- case 122280:// Healing Elixirs
- case 12598: // Counterspell
- return false;
- //- TrinityCore Custom Requirements
- // Unyielding Knights (item exploit 29108\29109)
- case 38164:
- {
- if (!victim || victim->GetEntry() != 19457) // Proc only if your target is Grillok
- return false;
- break;
- }
- // Cheat Death
- case 28845:
- {
- // When your health drops below 20%
- if (HealthBelowPctDamaged(20, damage) || HealthBelowPct(20))
- return false;
- break;
- }
- // Greater Heal Refund (Avatar Raiment set)
- case 37594:
- {
- if (!victim || !victim->IsAlive())
- return false;
- // Doesn't proc if target already has full health
- if (victim->IsFullHealth())
- return false;
- // If your Greater Heal brings the target to full health, you gain $37595s1 mana.
- if (victim->GetHealth() + damage < victim->GetMaxHealth())
- return false;
- break;
- }
- // Decimation
- case 108869:
- // Can proc only if target has hp below 25%
- if (!victim || !victim->HealthBelowPct(triggeredByAura->GetSpellEffectInfo()->CalcValue()))
- return false;
- break;
- // Deathbringer Saurfang - Blood Beast's Blood Link
- case 72176:
- basepoints0 = 3;
- break;
- // Professor Putricide - Ooze Spell Tank Protection
- case 71770:
- if (victim)
- victim->CastSpell(victim, trigger_spell_id, true); // EffectImplicitTarget is self
- return true;
- case 2823: // Deadly Poison
- case 3408: // Crippling Poison
- case 8679: // Wound Poison
- case 108211:// Leeching Poison
- {
- if (GetTypeId() != TYPEID_PLAYER)
- return false;
- // Don't trigger poison if no damage dealed (except for absorb)
- if (!damage && !(procEx & PROC_EX_ABSORB))
- return false;
- break;
- }
- default:
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement