From 76972e358c347140a4b6b1f9399cbcd7f7f54baa Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 8 Sep 2024 12:45:19 -0400 Subject: [PATCH] v2.5.0: thorns no longer rebounds damage to allies --- .../shatteredpixeldungeon/items/armor/glyphs/Thorns.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/glyphs/Thorns.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/glyphs/Thorns.java index 04c051139..200e7ea41 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/glyphs/Thorns.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/glyphs/Thorns.java @@ -41,7 +41,7 @@ public class Thorns extends Armor.Glyph { // lvl 1 - 23.1% // lvl 2 - 28.5% float procChance = (level+2f)/(level+12f) * procChanceMultiplier(defender); - if ( Random.Float() < procChance ) { + if ( attacker.alignment != defender.alignment && Random.Float() < procChance ) { float powerMulti = Math.max(1f, procChance);