Skip to content

Commit 3a2784e

Browse files
committed
Fixed PowerMorph setting wrong Owner
Also sets default flash effects.
1 parent 028fb65 commit 3a2784e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wadsrc/static/zscript/actors/inventory/powerups.zs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1884,6 +1884,8 @@ class PowerMorph : Powerup
18841884
Default
18851885
{
18861886
Powerup.Duration -40;
1887+
PowerMorph.MorphFlash "TeleportFog";
1888+
PowerMorph.UnmorphFlash "TeleportFog";
18871889
}
18881890

18891891
//===========================================================================
@@ -1901,8 +1903,6 @@ class PowerMorph : Powerup
19011903

19021904
if (Owner.Morph(Owner, PlayerClass, MonsterClass, int.max, MorphStyle, MorphFlash, UnmorphFlash))
19031905
{
1904-
// Get the real owner; safe because we are not attached to anything yet.
1905-
Owner = Owner.Alternative;
19061906
bCreateCopyMoved = true; // Let the caller know the "real" owner has changed (to the morphed actor).
19071907
MorphedPlayer = Owner.player;
19081908
}

0 commit comments

Comments
 (0)