v0.4.0: fixed some bugs and adjusted lucky enchant

This commit is contained in:
Evan Debenham
2016-06-07 16:48:15 -04:00
committed by Evan Debenham
parent 5a30d89647
commit f20130de0f
3 changed files with 9 additions and 5 deletions
@@ -895,7 +895,7 @@ public class Hero extends Char {
public int attackProc( Char enemy, int damage ) {
KindOfWeapon wep = rangedWeapon != null ? rangedWeapon : belongings.weapon;
if (wep != null) wep.proc( this, enemy, damage );
if (wep != null) damage = wep.proc( this, enemy, damage );
switch (subClass) {
case SNIPER:
@@ -123,8 +123,7 @@ public class Statue extends Mob {
@Override
public int attackProc( Char enemy, int damage ) {
weapon.proc( this, enemy, damage );
return damage;
return weapon.proc( this, enemy, damage );
}
@Override