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)
|
||||
{
|
||||
DamageInfo dmgInfo = eventInfo.GetDamageInfo();
|
||||
if (dmgInfo != null)
|
||||
{
|
||||
Unit caster = eventInfo.GetActionTarget();
|
||||
if (caster)
|
||||
if (caster.HealthBelowPctDamaged(35, dmgInfo.GetDamage()))
|
||||
return true;
|
||||
}
|
||||
Unit caster = eventInfo.GetActionTarget();
|
||||
if (caster != null)
|
||||
if (caster.HealthBelowPct(35))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user