mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 05:40:25 +00:00
Remove Open action fallback for Tribunal NPC companions
This commit is contained in:
parent
c5564323e4
commit
0178c5aaef
1 changed files with 0 additions and 4 deletions
|
@ -954,10 +954,6 @@ namespace MWClass
|
||||||
return std::make_unique<MWWorld::ActionTalk>(ptr);
|
return std::make_unique<MWWorld::ActionTalk>(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tribunal and some mod companions oddly enough must use open action as fallback
|
|
||||||
if (!getScript(ptr).empty() && ptr.getRefData().getLocals().getIntVar(getScript(ptr), "companion"))
|
|
||||||
return std::make_unique<MWWorld::ActionOpen>(ptr);
|
|
||||||
|
|
||||||
if (inCombatWithActor)
|
if (inCombatWithActor)
|
||||||
return std::make_unique<MWWorld::FailedAction>("#{sActorInCombat}");
|
return std::make_unique<MWWorld::FailedAction>("#{sActorInCombat}");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue