Skip to content

Commit

Permalink
Complete refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Mar 7, 2024
1 parent d4e887e commit a579e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/missiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ bool MonsterMHit(const Player &player, int monsterId, int mindam, int maxdam, in
{
auto &monster = Monsters[monsterId];

if (!monster.isPossibleToHit() || monster.isImmune(t, damageType) || monster.belongsToPlayer(player) || (monster.isPlayerMinion() && sgGameInitInfo.bFriendlyFire == 0 && player.friendlyMode))
if (!monster.isPossibleToHit() || monster.isImmune(t, damageType) || !monster.canPlayerDamage(player))
return false;

int hit = RandomIntLessThan(100);
Expand Down

0 comments on commit a579e45

Please sign in to comment.