Skip to content

Commit

Permalink
add five seconds from water bomb, while player has icy effect
Browse files Browse the repository at this point in the history
  • Loading branch information
TerminalHash committed Sep 18, 2024
1 parent 410ee21 commit 5386333
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Base/Entities/Items/Explosives/Explosion.as
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,12 @@ void onHitBlob(CBlob@ this, Vec2f worldPoint, Vec2f velocity, f32 damage, CBlob@
//hitBlob.Sync("icy", true);
}
}

if (this.getName() == "waterbomb") {
if (hitBlob !is null && hitBlob.hasTag("player") && hitBlob.hasTag("icy")) {
hitBlob.add_s32("icy time", getTicksASecond() * 5);
}
}
}

/**
Expand Down

0 comments on commit 5386333

Please sign in to comment.