@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020. Pascal Syma <pascal@syma.dev>
|
||||
* Copyright (c) 2020. Antonio Martinez Casadesus and Pascal Syma.
|
||||
* All rights reserved.
|
||||
*/
|
||||
|
||||
@@ -29,7 +29,6 @@ export default class Hitbox extends Entity {
|
||||
|
||||
overlap(obj) {
|
||||
this.setData('active', false);
|
||||
obj.setData('hp', obj.getData('hp') - this.getData('dmg'));
|
||||
obj.hit();
|
||||
obj.hit(this.getData('dmg'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user