diff options
author | David Gay <david@davidgay.org> | 2021-06-07 22:36:50 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-07 22:36:50 -0400 |
commit | fbf84e869cec1ce7d3b775aa35509b5f1ad60455 (patch) | |
tree | 8ec07fb72559c2d7ea8441d6e4decbafa3c413e7 /app/models | |
parent | 5cb5a60cb326a47b969df9c21c7b0f16c50f7a2a (diff) |
Fix bug with meta resistances not being given special treatment in new combat stance code
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/character.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/character.rb b/app/models/character.rb index c593651..ce2b0db 100644 --- a/app/models/character.rb +++ b/app/models/character.rb @@ -337,8 +337,8 @@ class Character < ApplicationRecord res += resistance("energy") end - res -= (beastslay_level / 5).ceil if elusive? - res += (beastslay_level / 5).ceil if protective? + res -= (beastslay_level / 5).ceil if elusive? && !%w[physical energy].include?(damage_type) + res += (beastslay_level / 5).ceil if protective? && !%w[physical energy].include?(damage_type) res end |