mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-21 06:14:05 +00:00
Merge pull request #2739 from Capostrophic/vampirism
Don't reset dead non-werewolf vampires' vampire NPC type (regression #5327)
This commit is contained in:
commit
4c5d2feee8
1 changed files with 3 additions and 0 deletions
|
@ -269,6 +269,9 @@ void HeadAnimationTime::setBlinkStop(float value)
|
||||||
NpcAnimation::NpcType NpcAnimation::getNpcType()
|
NpcAnimation::NpcType NpcAnimation::getNpcType()
|
||||||
{
|
{
|
||||||
const MWWorld::Class &cls = mPtr.getClass();
|
const MWWorld::Class &cls = mPtr.getClass();
|
||||||
|
// Dead vampires should typically stay vampires.
|
||||||
|
if (mNpcType == Type_Vampire && cls.getNpcStats(mPtr).isDead() && !cls.getNpcStats(mPtr).isWerewolf())
|
||||||
|
return mNpcType;
|
||||||
NpcAnimation::NpcType curType = Type_Normal;
|
NpcAnimation::NpcType curType = Type_Normal;
|
||||||
if (cls.getCreatureStats(mPtr).getMagicEffects().get(ESM::MagicEffect::Vampirism).getMagnitude() > 0)
|
if (cls.getCreatureStats(mPtr).getMagicEffects().get(ESM::MagicEffect::Vampirism).getMagnitude() > 0)
|
||||||
curType = Type_Vampire;
|
curType = Type_Vampire;
|
||||||
|
|
Loading…
Reference in a new issue