Skip to content

Commit e47e856

Browse files
committed
fix: Poison shots working with non-pistols (resolves #194)
1 parent d9f4947 commit e47e856

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TTT/CS2/Items/PoisonShots/PoisonShotsListener.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void OnDamage(PlayerDamagedEvent ev) {
7878
if (ev.Attacker == null) return;
7979
if (!poisonShots.TryGetValue(ev.Attacker, out var shot) || shot <= 0)
8080
return;
81-
if (ev.Weapon == null || !Tag.GUNS.Contains(ev.Weapon)) return;
81+
if (ev.Weapon == null || !Tag.PISTOLS.Contains(ev.Weapon)) return;
8282
Messenger.Message(ev.Attacker,
8383
Locale[PoisonShotMsgs.SHOP_ITEM_POISON_HIT(ev.Player)]);
8484
addPoisonEffect(ev.Player, ev.Attacker);

0 commit comments

Comments
 (0)