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:
hondacrx
2021-11-18 20:27:38 -05:00
parent b5d1877d0e
commit 1b0c5877ab
+4 -8
View File
@@ -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;
}