diff options
author | QAston <none@none> | 2009-04-19 01:32:22 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-04-19 01:32:22 +0200 |
commit | c75e4675134213ef05e483fb86a23ae66a58adf1 (patch) | |
tree | 80809d6bd07695f2e07f787545f4137cd9d00244 /src | |
parent | 8dc8babfb787578fb75214f1858168447c61b34c (diff) |
* Turn proc flag on periodic heal spells back on.
* Fix Glyph of Rejuvenation.
* Fix a typo in bladestorm handling.
* Use Player's Crippling Poison for Deadly Brew instead of mob one to make it not stackable(dunno if it's correct)
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellAuras.cpp | 8 | ||||
-rw-r--r-- | src/game/Unit.cpp | 11 |
2 files changed, 14 insertions, 5 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 8664988d03e..5e0da2f9e35 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -4048,7 +4048,7 @@ void AuraEffect::HandleModStateImmunityMask(bool apply, bool Real) immunity_list.push_back(SPELL_AURA_MOD_DECREASE_SPEED); if (GetMiscValue() & (1<<0)) immunity_list.push_back(SPELL_AURA_MOD_ROOT); - if (GetMiscValue() & (1<<3)) + if (GetMiscValue() & (1<<2)) immunity_list.push_back(SPELL_AURA_MOD_CONFUSE); if (GetMiscValue() & (1<<9)) immunity_list.push_back(SPELL_AURA_MOD_FEAR); @@ -5920,10 +5920,10 @@ void AuraEffect::PeriodicTick() } uint32 procAttacker = PROC_FLAG_ON_DO_PERIODIC;// | PROC_FLAG_SUCCESSFUL_HEAL; - uint32 procVictim = 0;//ROC_FLAG_ON_TAKE_PERIODIC | PROC_FLAG_TAKEN_HEAL; + uint32 procVictim = PROC_FLAG_ON_TAKE_PERIODIC; //| PROC_FLAG_TAKEN_HEAL; // ignore item heals -// if(procSpell && !haveCastItem) -// pCaster->ProcDamageAndSpell(target, procAttacker, procVictim, PROC_EX_NORMAL_HIT, pdamage, BASE_ATTACK, spellProto); + if(procSpell && !haveCastItem) + pCaster->ProcDamageAndSpell(target, procAttacker, procVictim, PROC_EX_NORMAL_HIT, pdamage, BASE_ATTACK, spellProto); break; } case SPELL_AURA_PERIODIC_MANA_LEECH: diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index e554883ad9c..bcc96c972bc 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5615,6 +5615,15 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger triggered_spell_id = 28742; break; } + // Glyph of Rejuvenation + case 54754: + { + if (pVictim->GetHealth() >= triggerAmount * pVictim->GetMaxHealth()/100) + return false; + basepoints0 = int32(triggerAmount * damage / 100); + triggered_spell_id = 54755; + break; + } // Healing Touch Refund (Idol of Longevity trinket) case 28847: { @@ -5735,7 +5744,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger // Deadly Brew else if( dummySpell->SpellIconID == 2963 ) { - triggered_spell_id = 25809; + triggered_spell_id = 3409; break; } // Quick Recovery |