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:
Kamron Batman 2021-12-01 08:15:16 -08:00 • committed by GitHub
parent 09a3bc9754
commit bea20f36a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 104 additions and 116 deletions

View file

@ -1,5 +1,3 @@
using System.Collections.Generic;
using Server.ContextMenus;
using Server.Engines.Craft;
namespace Server.Items

View file

@ -290,9 +290,8 @@ namespace Server.Items
}
else if (BaseHouse.FindHouseAt(from) != house)
{
from.SendLocalizedMessage(
1062339
); // You must be located inside of the house in which you are trying to place the contract.
// You must be located inside of the house in which you are trying to place the contract.
from.SendLocalizedMessage(1062339);
}
else if (!house.IsAosRules)
{
@ -320,15 +319,13 @@ namespace Server.Items
if (vendor)
{
from.SendLocalizedMessage(
1062342
); // You may not place a rental contract at this location while other beings occupy it.
// You may not place a rental contract at this location while other beings occupy it.
from.SendLocalizedMessage(1062342);
}
else if (contract)
{
from.SendLocalizedMessage(
1062341
); // That location is cluttered. Please clear out any objects there and try again.
// That location is cluttered. Please clear out any objects there and try again.
from.SendLocalizedMessage(1062341);
}
else
{

View file

@ -1,4 +1,3 @@
using Server.Mobiles;
using System;
using System.Collections.Generic;

View file

@ -1,5 +1,3 @@
using System;
namespace Server.Items
{
/// <summary>