From 5ed4f477eda8afc16e9d239c3b04239cbc8631f5 Mon Sep 17 00:00:00 2001 From: Boondorl Date: Wed, 17 Apr 2024 19:53:13 -0400 Subject: [PATCH] Fixed PowerMorph setting wrong Owner Also sets default flash effects. --- wadsrc/static/zscript/actors/inventory/powerups.zs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/actors/inventory/powerups.zs b/wadsrc/static/zscript/actors/inventory/powerups.zs index 76b0fea2d..5d0f0d7da 100644 --- a/wadsrc/static/zscript/actors/inventory/powerups.zs +++ b/wadsrc/static/zscript/actors/inventory/powerups.zs @@ -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; }