diff options
author | megamage <none@none> | 2009-01-06 13:45:49 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-06 13:45:49 -0600 |
commit | 3311f1ea0ecb6f578167b5791b106febbafd2efa (patch) | |
tree | ca93d40a14e7978f44a3296a623b7c96f135322f /src/game/Unit.cpp | |
parent | 2b21f0e7302cfdb0fc79e3255f80dc33b939c974 (diff) |
*Mangos [7034] Add support 96 bit spell family mask to triggers. By DiSlord.
*Mangos [7035] Disable wrong use some spell effects (changed in 303). By DiSlord.
*Mangos [7036] Implement one warlock glyph. By DiSlord.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c5c779812bf..b8b17bf5b9e 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -4775,6 +4775,15 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu target = this; break; } + // Vampiric Touch (generic, used by some boss) + case 52723: + case 60501: + { + triggered_spell_id = 52724; + basepoints0 = damage / 2; + target = this; + break; + } } break; } @@ -7678,6 +7687,16 @@ bool Unit::isSpellCrit(Unit *pVictim, SpellEntry const *spellProto, SpellSchoolM } } } + // Glyph of Shadowburn + if (spellProto->SpellFamilyName == SPELLFAMILY_WARLOCK && + spellProto->SpellFamilyFlags & 0x0000000000000080 && + pVictim->HasAuraState(AURA_STATE_HEALTHLESS_35_PERCENT)) + { + AuraList const& mOverrideClassScript = GetAurasByType(SPELL_AURA_OVERRIDE_CLASS_SCRIPTS); + for(AuraList::const_iterator i = mOverrideClassScript.begin(); i != mOverrideClassScript.end(); ++i) + if((*i)->GetModifier()->m_miscvalue == 7917) + crit_chance+=(*i)->GetModifier()->m_amount; + } } break; } |