Photon Ripper now triggers the summon penalty

This commit is contained in:
CongratsIsTrash committed 2024-06-30 18:15:06 -04:00
1 parent 52a615860d
commit c60a01608c
1 file changed
+1 -1
+1 -1
View File
@@ -710,7 +710,7 @@ namespace CalamityMod.CalPlayer
heldItem.CountsAsClass<ThrowingDamageClass>()
);
bool heldItemIsTool = heldItem.pick > 0 || heldItem.axe > 0 || heldItem.hammer > 0;
bool heldItemIsTool = (heldItem.pick > 0 || heldItem.axe > 0 || heldItem.hammer > 0) && heldItem.type != ModContent.ItemType<PhotonRipper>();
bool heldItemCanBeUsed = heldItem.useStyle != ItemUseStyleID.None;
bool heldItemIsAccessoryOrAmmo = heldItem.accessory || heldItem.ammo != AmmoID.None;
bool heldItemIsExcludedByModCall = CalamityLists.DisabledSummonerNerfItems.Contains(heldItem.type);