mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 12:30:32 +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
ee5bbdf011
commit
31820098a6
1 changed files with 1 additions and 1 deletions
|
@ -1148,7 +1148,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