From fbf84e869cec1ce7d3b775aa35509b5f1ad60455 Mon Sep 17 00:00:00 2001 From: David Gay Date: Mon, 7 Jun 2021 22:36:50 -0400 Subject: Fix bug with meta resistances not being given special treatment in new combat stance code --- app/models/character.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') 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 -- cgit v1.2.3