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
|
|
@ -16,6 +16,9 @@ namespace Server.Spells
|
|||
|
||||
public ISpell Spell => _spell;
|
||||
|
||||
protected override bool CanTarget(Mobile from, StaticTarget staticTarget, ref Point3D loc, ref Map map) => false;
|
||||
protected override bool CanTarget(Mobile from, Item item, ref Point3D loc, ref Map map) => false;
|
||||
|
||||
protected override void OnTarget(Mobile from, object o)
|
||||
{
|
||||
_spell.Target(o as Mobile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue