|
|
@@ -64,7 +64,7 @@ module.exports = { |
|
|
|
updateBase: function () { |
|
|
|
if (this.castTime > 0) { |
|
|
|
let action = this.currentAction; |
|
|
|
if (_.getDeepProperty(action, 'target.destroyed') || !this.canCast(action.target)) { |
|
|
|
if (_.getDeepProperty(action, 'target.destroyed') || (action && !this.canCast(action.target))) { |
|
|
|
this.currentAction = null; |
|
|
|
this.castTime = 0; |
|
|
|
this.obj.syncer.set(false, null, 'casting', 0); |
|
|
|