fix: Hireables should not drop their pack (#1503)
This commit is contained in:
parent
856db6a64c
commit
11e1b425d9
2 changed files with 8 additions and 1 deletions
|
|
@ -1762,7 +1762,11 @@ public abstract class BaseAI
|
|||
}
|
||||
|
||||
m_Mobile.BeginDeleteTimer();
|
||||
m_Mobile.DropBackpack();
|
||||
|
||||
if (m_Mobile.CanDrop)
|
||||
{
|
||||
m_Mobile.DropBackpack();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,6 +49,9 @@ public partial class BaseHire : BaseCreature
|
|||
public override bool IsBondable => false;
|
||||
public override bool KeepsItemsOnDeath => true;
|
||||
|
||||
// Ensure we cannot drop if we are a hireable
|
||||
public override bool CanDrop => false;
|
||||
|
||||
[AfterDeserialization]
|
||||
private void AfterDeserialization()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue