Majestic Guard can't heal versus dummies

This commit is contained in:
Ozzatron committed 2019-07-27 13:43:31 -04:00
1 parent 71a7c24f59
commit 4e79ff588f
1 file changed
+4
+4
View File
@@ -41,6 +41,10 @@ namespace CalamityMod.Items.Weapons
{
target.defense -= 10;
}
// Healing effect does not trigger versus dummies
if (target.type == NPCID.TargetDummy)
return;
if (target.defense <= 0 && target.canGhostHeal)
{
player.statLife += 3;