v0.3.1a: fixed spear traps dealing negative damage, also added a safety check for dealing negative damage.
This commit is contained in:
@@ -241,7 +241,7 @@ public abstract class Char extends Actor {
|
||||
|
||||
public void damage( int dmg, Object src ) {
|
||||
|
||||
if (HP <= 0) {
|
||||
if (HP <= 0 || dmg < 0) {
|
||||
return;
|
||||
}
|
||||
if (this.buff(Frost.class) != null){
|
||||
|
||||
Reference in New Issue
Block a user