v2.1.1: fixed grim immunity not applying
This commit is contained in:
+4
@@ -36,6 +36,10 @@ public class Grim extends Weapon.Enchantment {
|
|||||||
@Override
|
@Override
|
||||||
public int proc( Weapon weapon, Char attacker, Char defender, int damage ) {
|
public int proc( Weapon weapon, Char attacker, Char defender, int damage ) {
|
||||||
|
|
||||||
|
if (defender.isImmune(Grim.class)) {
|
||||||
|
return damage;
|
||||||
|
}
|
||||||
|
|
||||||
int level = Math.max( 0, weapon.buffedLvl() );
|
int level = Math.max( 0, weapon.buffedLvl() );
|
||||||
|
|
||||||
//scales from 0 - 50% based on how low hp the enemy is, plus 0-5% per level
|
//scales from 0 - 50% based on how low hp the enemy is, plus 0-5% per level
|
||||||
|
|||||||
Reference in New Issue
Block a user