fix: Fixes mount blocking and adds permanent option for customization (#1005)
This commit is contained in:
parent
f2275cb65b
commit
848db6fc4b
2 changed files with 24 additions and 15 deletions
|
|
@ -589,8 +589,7 @@ namespace Server.Spells.Ninjitsu
|
|||
m_LastTarget = m_Mobile.Combatant;
|
||||
}
|
||||
|
||||
if (m_Mobile.Warmode && m_LastTarget?.Alive == true && m_LastTarget?.Deleted != true &&
|
||||
m_Counter-- <= 0)
|
||||
if (m_Mobile.Warmode && m_LastTarget is { Alive: true, Deleted: false } && m_Counter-- <= 0)
|
||||
{
|
||||
if (m_Mobile.CanBeHarmful(m_LastTarget) && m_LastTarget.Map == m_Mobile.Map &&
|
||||
m_LastTarget.InRange(m_Mobile.Location, BaseCreature.DefaultRangePerception) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue