Fixed inconsistencies between player and monster morphing
The Tome of Power and Chaos Device will now work on non-players. The STAYMORPHED flag will now work on players.
This commit is contained in:
parent
2c09a443b4
commit
30730647fe
5 changed files with 116 additions and 77 deletions
|
|
@ -330,7 +330,7 @@ void AActor::Die (AActor *source, AActor *inflictor, int dmgflags, FName MeansOf
|
|||
VMCall(func, params, 1, nullptr, 0);
|
||||
|
||||
// Always kill the dummy Actor if it didn't unmorph, otherwise checking the morph flags.
|
||||
if (realMo != nullptr && (alternative != nullptr || !(morphStyle & MORPH_UNDOBYDEATHSAVES)))
|
||||
if (realMo != nullptr && (!(morphStyle & MORPH_UNDOBYDEATH) || !(morphStyle & MORPH_UNDOBYDEATHSAVES)))
|
||||
{
|
||||
if (wasgibbed)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue