Comparing version 0.0.92 to 0.0.93
@@ -324,3 +324,3 @@ 'use strict'; | ||
serie.splice(0, 1); | ||
if (unit.skill_type === 'bodyshield' && serie.length > 0) { | ||
if (unit.skill_type === 'bodyshield' && serie.length > 0 && serie[0] && serie[0].dmg) { | ||
unit.takeDamages(serie[0].dmg * attackpower / 100, skill_type, round, serie[0].author, serie[0].num); | ||
@@ -327,0 +327,0 @@ serie.splice(0, 1); |
{ | ||
"name": "drugwars", | ||
"version": "0.0.92", | ||
"version": "0.0.93", | ||
"description": "A lightweight JavaScript library for DrugWars", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -299,3 +299,3 @@ import { orderBy } from 'lodash'; | ||
serie.splice(0, 1); | ||
if(unit.skill_type === 'bodyshield' && serie.length > 0) | ||
if(unit.skill_type === 'bodyshield' && serie.length > 0 && serie[0] && serie[0].dmg) | ||
{ | ||
@@ -302,0 +302,0 @@ unit.takeDamages(serie[0].dmg * attackpower / 100, skill_type, round , serie[0].author, serie[0].num); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2502595