mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[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:
parent
ea9dd78d35
commit
18ffffd379
2 changed files with 8 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue