fixed a bug with sand cloak, shock grenades, and tesla potion

This commit is contained in:
termigator1359 committed 2020-05-15 10:21:40 -04:00
1 parent c989a4af32
commit d909a0ed60
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ namespace CalamityMod.Projectiles.Rogue
if (CalamityGlobalNPC.ShouldAffectNPC(target))
{
float knockbackMultiplier = knockback - target.knockBackResist;
float knockbackMultiplier = knockback - (1f - target.knockBackResist);
if (knockbackMultiplier < 0)
{
knockbackMultiplier = 0;
+1 -1
View File
@@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Typeless
if (CalamityGlobalNPC.ShouldAffectNPC(target))
{
float knockbackMultiplier = knockback - target.knockBackResist;
float knockbackMultiplier = knockback - (1f - target.knockBackResist);
if (knockbackMultiplier < 0)
{
knockbackMultiplier = 0;
+1 -1
View File
@@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Typeless
if (CalamityGlobalNPC.ShouldAffectNPC(target))
{
float knockbackMultiplier = knockback - target.knockBackResist;
float knockbackMultiplier = knockback - (1f - target.knockBackResist);
if (knockbackMultiplier < 0)
{
knockbackMultiplier = 0;