@reldens/skills 0.16.5 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,6 +49,7 @@ class Attack extends Skill
49
49
 
50
50
  async runSkillLogic()
51
51
  {
52
+ this.lastState = null;
52
53
  if(!this.validateRange(this.target)){
53
54
  // out of range, the owner or the target could move away
54
55
  this.lastState = SkillsConst.SKILL_STATES.OUT_OF_RANGE;
@@ -26,6 +26,7 @@ class Effect extends Skill
26
26
 
27
27
  async runSkillLogic()
28
28
  {
29
+ this.lastState = null;
29
30
  if(!this.validateRange(this.target)){
30
31
  this.lastState = SkillsConst.SKILL_STATES.OUT_OF_RANGE;
31
32
  // out of range, the owner or the target could move away
@@ -11,6 +11,7 @@ class PhysicalSkillRunner
11
11
 
12
12
  static async runSkillLogic(skill)
13
13
  {
14
+ this.lastState = null;
14
15
  if(!skill.validateRange(skill.target)){
15
16
  this.lastState = SkillsConst.SKILL_STATES.OUT_OF_RANGE;
16
17
  // @NOTE: out of range, the owner or the target could have moved away.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@reldens/skills",
3
3
  "scope": "@reldens",
4
- "version": "0.16.5",
4
+ "version": "0.17.0",
5
5
  "description": "Reldens - Skills",
6
6
  "author": "Damian A. Pastorini",
7
7
  "license": "MIT",
@@ -40,8 +40,8 @@
40
40
  "url": "https://github.com/damian-pastorini/reldens-skills/issues"
41
41
  },
42
42
  "dependencies": {
43
- "@reldens/modifiers": "^0.17.1",
44
- "@reldens/storage": "^0.12.2",
45
- "@reldens/utils": "^0.17.7"
43
+ "@reldens/modifiers": "^0.18.0",
44
+ "@reldens/storage": "^0.13.0",
45
+ "@reldens/utils": "^0.18.0"
46
46
  }
47
47
  }