Skip to content

Commit 3e61cb8

Browse files
committed
🐛 [hellfire] Sparkling Shrine deals a random amount of damage
If cast by traps flash would look in memory a bit before the monster array for what value to use as damage, no one knows what might have been there waiting so could deal anything form -254 to 254 damage. Fixes #1500
1 parent f0080a6 commit 3e61cb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/missiles.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -2506,8 +2506,8 @@ void AddFlash(Sint32 mi, Sint32 sx, Sint32 sy, Sint32 dx, Sint32 dy, Sint32 midi
25062506
{
25072507
int i;
25082508

2509-
if (mienemy == TARGET_MONSTERS) {
2510-
if (id != -1) {
2509+
if (id != -1) {
2510+
if (mienemy == TARGET_MONSTERS) {
25112511
missile[mi]._midam = 0;
25122512
for (i = 0; i <= plr[id]._pLevel; i++) {
25132513
missile[mi]._midam += random_(55, 20) + 1;
@@ -2518,10 +2518,10 @@ void AddFlash(Sint32 mi, Sint32 sx, Sint32 sy, Sint32 dx, Sint32 dy, Sint32 midi
25182518
missile[mi]._midam += missile[mi]._midam >> 1;
25192519
UseMana(id, SPL_FLASH);
25202520
} else {
2521-
missile[mi]._midam = currlevel >> 1;
2521+
missile[mi]._midam = monster[id].mLevel << 1;
25222522
}
25232523
} else {
2524-
missile[mi]._midam = monster[id].mLevel << 1;
2524+
missile[mi]._midam = currlevel >> 1;
25252525
}
25262526
missile[mi]._mirange = 19;
25272527
}

0 commit comments

Comments
 (0)