mod- shotgun immuity

This commit is contained in:
landgreen
2020-02-25 05:57:29 -08:00
parent c6c447ec47
commit 0148b1d272
6 changed files with 48 additions and 23 deletions

View File

@@ -831,8 +831,8 @@ const spawn = {
// });
// }
// hitting player
if (best.who === player && mech.collisionImmune < mech.cycle) {
mech.collisionImmune = mech.cycle + b.modCollisionImmuneCycles; //player is immune to collision damage for 30 cycles
if (best.who === player && mech.collisionImmuneCycle < mech.cycle) {
mech.collisionImmuneCycle = mech.cycle + b.modCollisionImmuneCycles; //player is immune to collision damage for 30 cycles
mech.damage(this.dmg);
//draw damage
game.drawList.push({ //add dmg to draw queue