Commit 481d1d6d authored by Enteocline's avatar Enteocline
Browse files

Merge branch 'master' of

parents 5a6d29cb 5317a4f0
......@@ -140,6 +140,9 @@ public class Being extends Entity {
* @return true if this is dead. false otherwise.
public boolean takeDamage(int damage){
if(damage>0) {
HP=Math.min(maxHP, Math.max(HP-damage, 0));
if (HP==0){
Event event = new ToServerDeathEvent(this.getID());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment