From 678efdbba3d390a621e8761476317a839e134401 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 27 Apr 2021 17:15:46 -0400 Subject: [PATCH] v0.9.3: fixed bugs with barkskin and blocking applying to all chars --- .../com/shatteredpixel/shatteredpixeldungeon/actors/Char.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java index 9870c1c2a..a348b94bf 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java @@ -291,10 +291,10 @@ public abstract class Char extends Actor { int dr = enemy.drRoll(); - Barkskin bark = buff(Barkskin.class); + Barkskin bark = enemy.buff(Barkskin.class); if (bark != null) dr += Random.NormalIntRange( 0 , bark.level() ); - Blocking.BlockBuff block = buff(Blocking.BlockBuff.class); + Blocking.BlockBuff block = enemy.buff(Blocking.BlockBuff.class); if (block != null) dr += block.blockingRoll(); if (this instanceof Hero){