v2.5.0: thorns no longer rebounds damage to allies

This commit is contained in:
Evan Debenham
2024-09-08 12:45:19 -04:00
parent 734f7ad0d4
commit 76972e358c

View File

@@ -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);