[10035] Additinal reqs for spell 49219/51459 and ranks triggering.

* Only at melee attack or spell 56815 hit.
* Spell 49219 and ranks also ignore offhand attack.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Insider42 2010-06-06 18:04:38 +04:00 committed by VladimirMangos
parent ea9dd78d35
commit 18ffffd379
2 changed files with 8 additions and 3 deletions

View file

@ -7028,8 +7028,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
// Necrosis
if (dummySpell->SpellIconID == 2709)
{
// only melee auto attack affected
if (!(procFlag & PROC_FLAG_SUCCESSFUL_MELEE_HIT))
// only melee auto attack affected and Rune Strike
if (!(procFlag & PROC_FLAG_SUCCESSFUL_MELEE_HIT) && procSpell->Id != 56815)
return false;
basepoints[0] = triggerAmount * damage / 100;
@ -7140,6 +7140,11 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
// Blood-Caked Blade
if (dummySpell->SpellIconID == 138)
{
// only main hand melee auto attack affected and Rune Strike
if ((procFlag & PROC_FLAG_SUCCESSFUL_OFFHAND_HIT) ||
!(procFlag & PROC_FLAG_SUCCESSFUL_MELEE_HIT) && procSpell->Id != 56815)
return false;
// triggered_spell_id in spell data
break;
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10034"
#define REVISION_NR "10035"
#endif // __REVISION_NR_H__