*Fix dispel resistance apply on some effect.

*Fix Sanctified Wrath.
*Fix Summon Type 429-by aerione_alt.
*Fix some spell procs-by Sephiroth1983 and oc_redfox.
*Fix demonic sacriface spell_bonus-by aerione_alt.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-03-06 22:57:45 +01:00
parent 2e0af6e37b
commit ab4b55f351
5 changed files with 65 additions and 22 deletions
+13 -10
View File
@@ -3295,20 +3295,23 @@ void Aura::HandleModStealth(bool apply, bool Real)
}
}
// Master of Subtlety
Unit::AuraList const& mDummyAuras = m_target->GetAurasByType(SPELL_AURA_DUMMY);
for(Unit::AuraList::const_iterator i = mDummyAuras.begin();i != mDummyAuras.end(); ++i)
if (Real)
{
if ((*i)->GetSpellProto()->SpellIconID == 2114 && Real)
// Master of Subtlety
Unit::AuraList const& mDummyAuras = m_target->GetAurasByType(SPELL_AURA_DUMMY);
for(Unit::AuraList::const_iterator i = mDummyAuras.begin();i != mDummyAuras.end(); ++i)
{
if (apply)
if ((*i)->GetSpellProto()->SpellIconID == 2114)
{
int32 bp = (*i)->GetModifier()->m_amount;
m_target->CastCustomSpell(m_target,31665,&bp,NULL,NULL,true);
if (apply)
{
int32 bp = (*i)->GetModifier()->m_amount;
m_target->CastCustomSpell(m_target,31665,&bp,NULL,NULL,true);
}
else
m_target->CastSpell(m_target,31666,true);
break;
}
else
m_target->CastSpell(m_target,31666,true);
break;
}
}
}