Fixed Gilded/Gleaming damage SS issues
This commit is contained in:
1 parent
f88460e78e
commit
673478f9d5
2 files changed
+2
-2
No files matched your search
@@ -66,7 +66,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
else if (projectile.Calamity().stealthStrike && hasHitEnemy)
|
||||
{
|
||||
if (targetNPC >= 0)
|
||||
if (targetNPC >= 0 && Main.npc[targetNPC].active)
|
||||
{
|
||||
Vector2 newVelocity = Main.npc[targetNPC].Center - projectile.Center;
|
||||
newVelocity.Normalize();
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
else if (projectile.Calamity().stealthStrike && hasHitEnemy)
|
||||
{
|
||||
if (targetNPC >= 0)
|
||||
if (targetNPC >= 0 && Main.npc[targetNPC].active)
|
||||
{
|
||||
Vector2 newVelocity = Main.npc[targetNPC].Center - projectile.Center;
|
||||
newVelocity.Normalize();
|
||||
|
||||
Reference in new issue
Block a user