diff options
| author | QAston <none@none> | 2009-03-08 19:18:02 +0100 |
|---|---|---|
| committer | QAston <none@none> | 2009-03-08 19:18:02 +0100 |
| commit | f260c923949dd49719cc1fd038b72ef6a6259c19 (patch) | |
| tree | b09a80340760ae718c2e345121ac7c7edb5a2889 /src/game/SpellAuras.cpp | |
| parent | 2826ebee2ffd275baf165894201687305a424284 (diff) | |
*Update Master of Subtlety code and fix Overkill.
*Fix Aspect of the Viper-by pasdVn
*Fix Circle of Healing.
Fix Rapture-by pasdVn
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
| -rw-r--r-- | src/game/SpellAuras.cpp | 52 |
1 files changed, 18 insertions, 34 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 24f04ea143f..048c0832c41 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -3322,24 +3322,14 @@ void Aura::HandleModStealth(bool apply, bool Real) } } - if (Real) + if (Real && !apply) { // 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 ((*i)->GetSpellProto()->SpellIconID == 2114) - { - 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; - } - } + if (m_target->HasAura(31665)) + m_target->CastSpell(m_target,31666,true); + // Overkill + if (m_target->HasAura(58427)) + m_target->CastSpell(m_target,58428,true); } } @@ -3944,16 +3934,6 @@ void Aura::HandleAuraPeriodicDummy(bool apply, bool Real) SpellEntry const*spell = GetSpellProto(); switch( spell->SpellFamilyName) { - case SPELLFAMILY_ROGUE: - { - // Master of Subtlety - if (spell->Id==31666 && !apply) - { - m_target->RemoveAurasDueToSpell(31665); - break; - } - break; - } case SPELLFAMILY_HUNTER: { // Explosive Shot @@ -6237,17 +6217,21 @@ void Aura::PeriodicDummyTick() } case SPELLFAMILY_ROGUE: { -// switch (spell->Id) -// { - // Master of Subtlety -// case 31666: break; + switch (spell->Id) + { // Killing Spree // case 51690: break; // Overkill -// case 58428: break; -// default: -// break; -// } + case 58428: + m_target->RemoveAurasDueToSpell(58427); + break; + // Master of Subtlety + case 31666: + m_target->RemoveAurasDueToSpell(31665); + break; + default: + break; + } break; } case SPELLFAMILY_HUNTER: |
