[9961] Restore work talent 18213 and ranks.

Thanks also to insider42 for updating.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
pasdVn 2010-05-23 15:03:01 +04:00 committed by VladimirMangos
parent 3f4544df9d
commit 2c396da82b
2 changed files with 8 additions and 6 deletions

View file

@ -7393,13 +7393,15 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
// Drain Soul // Drain Soul
if (auraSpellInfo->SpellFamilyFlags & UI64LIT(0x0000000000004000)) if (auraSpellInfo->SpellFamilyFlags & UI64LIT(0x0000000000004000))
{ {
Unit::AuraList const& mAddFlatModifier = GetAurasByType(SPELL_AURA_ADD_FLAT_MODIFIER); // search for "Improved Drain Soul" dummy aura
for(Unit::AuraList::const_iterator i = mAddFlatModifier.begin(); i != mAddFlatModifier.end(); ++i) Unit::AuraList const& mDummyAura = GetAurasByType(SPELL_AURA_DUMMY);
for(Unit::AuraList::const_iterator i = mDummyAura.begin(); i != mDummyAura.end(); ++i)
{ {
if ((*i)->GetModifier()->m_miscvalue == SPELLMOD_CHANCE_OF_SUCCESS && (*i)->GetSpellProto()->SpellIconID == 113) if ((*i)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_WARLOCK && (*i)->GetSpellProto()->SpellIconID == 113)
{ {
// Drain Soul // basepoints of trigger spell stored in dummyeffect of spellProto
CastCustomSpell(this, 18371, &basepoints[0], NULL, NULL, true, castItem, triggeredByAura); int32 basepoints = GetMaxPower(POWER_MANA) * (*i)->GetSpellProto()->CalculateSimpleValue(EFFECT_INDEX_2) / 100;
CastCustomSpell(this, 18371, &basepoints, NULL, NULL, true, castItem, triggeredByAura);
break; break;
} }
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9960" #define REVISION_NR "9961"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__