Fixed PowerMorph setting wrong Owner

Also sets default flash effects.
This commit is contained in:
Boondorl 2024-04-17 19:53:13 -04:00 committed by Rachael Alexanderson
parent bcd6c6170e
commit 5ed4f477ed
No known key found for this signature in database
GPG Key ID: 26A8ACCE97115EE0
1 changed files with 2 additions and 2 deletions

View File

@ -1884,6 +1884,8 @@ class PowerMorph : Powerup
Default
{
Powerup.Duration -40;
PowerMorph.MorphFlash "TeleportFog";
PowerMorph.UnmorphFlash "TeleportFog";
}
//===========================================================================
@ -1901,8 +1903,6 @@ class PowerMorph : Powerup
if (Owner.Morph(Owner, PlayerClass, MonsterClass, int.max, MorphStyle, MorphFlash, UnmorphFlash))
{
// Get the real owner; safe because we are not attached to anything yet.
Owner = Owner.Alternative;
bCreateCopyMoved = true; // Let the caller know the "real" owner has changed (to the morphed actor).
MorphedPlayer = Owner.player;
}