Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

drugwars

Package Overview
Dependencies
Maintainers
1
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drugwars - npm Package Compare versions

Comparing version 0.0.92 to 0.0.93

2

lib/army.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc