Merge branch 'main' into addon-tutorial
This commit is contained in:
commit
2d5a7fd879
1 changed files with 13 additions and 1 deletions
|
|
@ -1358,7 +1358,19 @@ namespace Server.Mobiles
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_Team != c.m_Team || (_summoned || m_Controlled) != (c._summoned || c.m_Controlled);
|
if (m_Team != c.Team)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
var targetControlled = c._summoned || c.m_Controlled;
|
||||||
|
|
||||||
|
if (_summoned || m_Controlled)
|
||||||
|
{
|
||||||
|
return targetControlled || c.IsEnemy(GetMaster());
|
||||||
|
}
|
||||||
|
|
||||||
|
return targetControlled && IsEnemy(c.GetMaster());
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ApplyNameSuffix(string suffix)
|
public override string ApplyNameSuffix(string suffix)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue