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) 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;
} }