Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Mar 21, 2024
1 parent 1975a58 commit b14455b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ bool PlrHitMonst(Player &player, Monster &monster, bool adjacentDamage = false)
}

if (gbIsHellfire && HasAllOf(player._pIFlags, ItemSpecialEffect::FireDamage | ItemSpecialEffect::LightningDamage)) {
// Fixed off by 1 error from Hellfire
int midam = RandomIntBetween(player._pIFMinDam, player._pIFMaxDam);
AddMissile(player.position.tile, player.position.temp, player._pdir, MissileID::SpectralArrow, TARGET_MONSTERS, player, midam, 0);
}
Expand Down Expand Up @@ -920,6 +921,7 @@ bool DoRangeAttack(Player &player)
mistype = MissileID::LightningArrow;
}
if (HasAllOf(player._pIFlags, ItemSpecialEffect::FireArrows | ItemSpecialEffect::LightningArrows)) {
// Fixed off by 1 error from Hellfire
dmg = RandomIntBetween(player._pIFMinDam, player._pIFMaxDam);
mistype = MissileID::SpectralArrow;
}
Expand Down

0 comments on commit b14455b

Please sign in to comment.