mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 21:45:35 +00:00
Fix paralyze for levitating actors
This commit is contained in:
parent
3e87c35005
commit
218597b13d
1 changed files with 5 additions and 1 deletions
|
@ -2302,8 +2302,12 @@ namespace MWWorld
|
|||
if (stats.isDead())
|
||||
return false;
|
||||
|
||||
const bool isPlayer = ptr == getPlayerConstPtr();
|
||||
if (!(isPlayer && mGodMode) && stats.isParalyzed())
|
||||
return false;
|
||||
|
||||
if (ptr.getClass().canFly(ptr))
|
||||
return !stats.isParalyzed();
|
||||
return true;
|
||||
|
||||
if(stats.getMagicEffects().get(ESM::MagicEffect::Levitate).getMagnitude() > 0
|
||||
&& isLevitationEnabled())
|
||||
|
|
Loading…
Reference in a new issue