On kill no pierce damage reduction
This commit is contained in:
1 parent
c8a33ade4d
commit
6d62e70552
4 files changed
+4
-4
No files matched your search
@@ -208,7 +208,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
}
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
if (damageDone <= 2 && Projectile.numHits > 0)
|
||||
if ((damageDone <= 2 || target.life <= 0) && Projectile.numHits > 0)
|
||||
Projectile.numHits -= 1;
|
||||
|
||||
bool isAPillar = target.type == NPCID.LunarTowerSolar || target.type == NPCID.LunarTowerVortex || target.type == NPCID.LunarTowerNebula || target.type == NPCID.LunarTowerStardust;
|
||||
|
||||
@@ -167,7 +167,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
}
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
if (damageDone <= 2 && Projectile.numHits > 0)
|
||||
if ((damageDone <= 2 || target.life <= 0) && Projectile.numHits > 0)
|
||||
Projectile.numHits -= 1;
|
||||
|
||||
SoundStyle fire = new("CalamityMod/Sounds/NPCHit/ThanatosHitOpen1");
|
||||
|
||||
@@ -176,7 +176,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
}
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
if (damageDone <= 2 && Projectile.numHits > 0)
|
||||
if ((damageDone <= 2 || target.life <= 0) && Projectile.numHits > 0)
|
||||
Projectile.numHits -= 1;
|
||||
|
||||
bool isAPillar = target.type == NPCID.LunarTowerSolar || target.type == NPCID.LunarTowerVortex || target.type == NPCID.LunarTowerNebula || target.type == NPCID.LunarTowerStardust;
|
||||
|
||||
@@ -167,7 +167,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
}
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
if (damageDone <= 2 && Projectile.numHits > 0)
|
||||
if ((damageDone <= 2 || target.life <= 0) && Projectile.numHits > 0)
|
||||
Projectile.numHits -= 1;
|
||||
|
||||
SoundStyle fire = new("CalamityMod/Sounds/Item/CursedDaggerThrow");
|
||||
|
||||
Reference in new issue
Block a user