Comparing version 0.0.93 to 0.0.94
@@ -275,6 +275,2 @@ 'use strict'; | ||
serie.splice(0, 1); | ||
if (unit.skill_type === 'bodyshield' && serie.length > 0) { | ||
unit.takeDamages(serie[0].dmg * attackpower / 100, skill_type, round, serie[0].author, serie[0].num); | ||
serie.splice(0, 1); | ||
} | ||
} | ||
@@ -300,6 +296,2 @@ }); | ||
serie.splice(0, 1); | ||
if (unit.skill_type === 'bodyshield') { | ||
unit.takeDamages(serie[0].dmg * attackpower / 100, skill_type, round, serie[0].author, serie[0].num); | ||
serie.splice(0, 1); | ||
} | ||
} | ||
@@ -326,6 +318,2 @@ }); | ||
serie.splice(0, 1); | ||
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); | ||
serie.splice(0, 1); | ||
} | ||
} | ||
@@ -332,0 +320,0 @@ }); |
{ | ||
"name": "drugwars", | ||
"version": "0.0.93", | ||
"version": "0.0.94", | ||
"description": "A lightweight JavaScript library for DrugWars", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -248,7 +248,2 @@ import { orderBy } from 'lodash'; | ||
serie.splice(0, 1); | ||
if(unit.skill_type === 'bodyshield' && serie.length > 0) | ||
{ | ||
unit.takeDamages(serie[0].dmg * attackpower / 100, skill_type, round , serie[0].author, serie[0].num); | ||
serie.splice(0, 1); | ||
} | ||
} | ||
@@ -274,7 +269,2 @@ }); | ||
serie.splice(0, 1); | ||
if(unit.skill_type === 'bodyshield') | ||
{ | ||
unit.takeDamages(serie[0].dmg * attackpower / 100, skill_type, round , serie[0].author, serie[0].num); | ||
serie.splice(0, 1); | ||
} | ||
} | ||
@@ -301,7 +291,2 @@ }); | ||
serie.splice(0, 1); | ||
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); | ||
serie.splice(0, 1); | ||
} | ||
} | ||
@@ -308,0 +293,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2498864
10763