fixed stealth again for real i swear

This commit is contained in:
Ozzatron committed 2020-05-04 23:50:42 -04:00
1 parent 2ff2a199b4
commit 4e2e12d523
1 file changed
+1 -1
+1 -1
View File
@@ -9296,7 +9296,7 @@ namespace CalamityMod.CalPlayer
bool isPickaxe = it.pick > 0;
bool isAxe = it.axe > 0;
bool isHammer = it.hammer > 0;
bool isPlaced = it.createTile != 0;
bool isPlaced = it.createTile != -1;
bool hasNonWeaponFunction = isPickaxe || isAxe || isHammer || isPlaced;
bool playerUsingWeapon = hasDamage && hasHitboxes && !hasNonWeaponFunction;
if (!stealthStrikeThisFrame && player.itemAnimation == player.itemAnimationMax - 1 && playerUsingWeapon)