mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[8112] Fixed proc conditions for 63156 and ranks
* Fixed proc spell flags. * Fixed proc only on victim's certain level of HP. signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
aab121fcb2
commit
d17a49f6dc
5 changed files with 28 additions and 3 deletions
|
|
@ -6704,6 +6704,21 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
|
|||
return false;
|
||||
break;
|
||||
}
|
||||
// Decimation
|
||||
case 63156:
|
||||
case 63158:
|
||||
{
|
||||
// Looking for dummy effect
|
||||
Aura *aur = GetAura(auraSpellInfo->Id, 1);
|
||||
if (!aur)
|
||||
return false;
|
||||
|
||||
// If target's health is not below equal certain value (35%) not proc
|
||||
if ((pVictim->GetHealth() * 100 / pVictim->GetMaxHealth()) > aur->GetModifier()->m_amount)
|
||||
return false;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Custom basepoints/target for exist spell
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue