v0.4.0: fixed some bugs and adjusted lucky enchant
This commit is contained in:
committed by
Evan Debenham
parent
5a30d89647
commit
f20130de0f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user