Skip to content

Commit 93c8070

Browse files
authored
Fixed vFire explosionfix affecting only players instead of the other way around (#1860)
1 parent 2cb83f3 commit 93c8070

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
2121
- Fixed missing `limit_left` translation (by @mexikoedi)
2222
- Fixed `GetHeadshotMultiplier` nil value error (by @mexikoedi)
2323
- Fixed continuous use not working correctly with entities like health stations (by @saibotk)
24+
- Fixed vFire explosions still killing players with `NoExplosionDamage` equipped (by @TW1STaL1CKY)
25+
- Fixed vFire explosions sometimes not damaging entities in the way they should, like explosive barrels (by @TW1STaL1CKY)
2426

2527
### Removed / Breaking Changes
2628

lua/ttt2/libraries/game_effects.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ if SERVER then
234234
return
235235
end
236236

237-
if not IsValid(ent) or not ent:IsPlayer() or not dmg:IsExplosionDamage() then
237+
if not dmg:IsExplosionDamage() or not IsValid(ent) or ent:IsPlayer() then
238238
return
239239
end
240240

0 commit comments

Comments
 (0)