DB/Spell: fix mistake in Blood Draining's CheckProc and remove Attack Power scaling
Port From (https://github.com/TrinityCore/TrinityCore/commit/c7ad7d5e150d56286039de5717614f79985c1b3c)
This commit is contained in:
@@ -787,14 +787,10 @@ namespace Scripts.Spells.Generic
|
|||||||
|
|
||||||
bool CheckProc(ProcEventInfo eventInfo)
|
bool CheckProc(ProcEventInfo eventInfo)
|
||||||
{
|
{
|
||||||
DamageInfo dmgInfo = eventInfo.GetDamageInfo();
|
Unit caster = eventInfo.GetActionTarget();
|
||||||
if (dmgInfo != null)
|
if (caster != null)
|
||||||
{
|
if (caster.HealthBelowPct(35))
|
||||||
Unit caster = eventInfo.GetActionTarget();
|
return true;
|
||||||
if (caster)
|
|
||||||
if (caster.HealthBelowPctDamaged(35, dmgInfo.GetDamage()))
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user