fix: Fixes targeting checks (#869)
* Adds CanTarget for more granular overrides of specific targeting restrictions * Updates spell targeting * Fixes targeting checks
This commit is contained in:
parent
09a3bc9754
commit
bea20f36a0
33 changed files with 104 additions and 116 deletions
|
|
@ -6,7 +6,6 @@ using Server.Gumps;
|
|||
using Server.Logging;
|
||||
using Server.Mobiles;
|
||||
using Server.Network;
|
||||
using Server.Text;
|
||||
|
||||
namespace Server.Misc
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1351,10 +1351,10 @@ namespace Server.Guilds
|
|||
|
||||
alliance = Alliance; // CheckLeader could possibly change the value of this.Alliance
|
||||
|
||||
if (alliance?.IsMember(this) == false && !alliance.IsPendingMember(this)
|
||||
) // This block is there to fix a bug in the code in an older version.
|
||||
// This block is there to fix a bug in the code in an older version.
|
||||
if (alliance?.IsMember(this) == false && !alliance.IsPendingMember(this))
|
||||
{
|
||||
Alliance = null; // Will call Alliance.RemoveGuild which will set it null & perform all the pertient checks as far as alliacne disbanding
|
||||
Alliance = null; // Will call Alliance.RemoveGuild which will set it null & perform all the pertinent checks as far as alliance disbanding
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Net.NetworkInformation;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue