mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 06:42:08 +00:00
Pass the target as the source for active damage modifiers (i.e. PowerDamage) instead of the actual source.
- Getting the victim would be impossible otherwise, and passing in the original source is redundant when there's already the owner.
This commit is contained in:
parent
3864ed78e0
commit
32e65ff11d
1 changed files with 1 additions and 1 deletions
|
@ -1143,7 +1143,7 @@ static int DamageMobj (AActor *target, AActor *inflictor, AActor *source, int da
|
|||
// Handle active damage modifiers (e.g. PowerDamage)
|
||||
if (damage > 0 && !(flags & DMG_NO_ENHANCE))
|
||||
{
|
||||
damage = source->GetModifiedDamage(mod, damage, false, inflictor, source, flags);
|
||||
damage = source->GetModifiedDamage(mod, damage, false, inflictor, target, flags);
|
||||
}
|
||||
}
|
||||
// Handle passive damage modifiers (e.g. PowerProtection), provided they are not afflicted with protection penetrating powers.
|
||||
|
|
Loading…
Reference in a new issue