v0.9.3: fixed bugs with barkskin and blocking applying to all chars

This commit is contained in:
Evan Debenham 2021-04-27 17:15:46 -04:00
parent 6d8402824b
commit 678efdbba3

View File

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