diff --git a/Source/missiles.cpp b/Source/missiles.cpp index cd18fcebd93..f2cd1a15832 100644 --- a/Source/missiles.cpp +++ b/Source/missiles.cpp @@ -445,7 +445,7 @@ void CheckMissileCol(Missile &missile, DamageType damageType, int minDamage, int isPlayerHit = PlayerMHit(*player, &monster, missile._midist, minDamage, maxDamage, missile._mitype, damageType, isDamageShifted, DeathReason::MonsterOrTrap, &blocked); } } else { - DeathReason deathReason = (!missile.IsTrap() && (missile._miAnimType == MissileGraphicID::FireWall || missile._miAnimType == MissileGraphicID::Lightning)) ? DeathReason::Player : DeathReason::MonsterOrTrap; + DeathReason deathReason = missile.sourceType() == MissileSource::Player ? DeathReason::Player : DeathReason::MonsterOrTrap; isPlayerHit = PlayerMHit(*player, nullptr, missile._midist, minDamage, maxDamage, missile._mitype, damageType, isDamageShifted, deathReason, &blocked); } }