v0.6.2: fixed a freeze issue caused by yog's burning fist
This commit is contained in:
parent
26ec69ae9a
commit
ac8a552202
|
@ -315,7 +315,7 @@ public class Yog extends Mob {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean doAttack( Char enemy ) {
|
||||
public boolean attack( Char enemy ) {
|
||||
|
||||
if (!Dungeon.level.adjacent( pos, enemy.pos )) {
|
||||
spend( attackDelay() );
|
||||
|
@ -340,7 +340,7 @@ public class Yog extends Mob {
|
|||
return false;
|
||||
}
|
||||
} else {
|
||||
return super.doAttack( enemy );
|
||||
return super.attack( enemy );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user