From 36c373b76a0c8db149fc0e05188a09fc664fc26c Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Sat, 17 Aug 2024 22:45:08 -0700 Subject: [PATCH] fix: Fixes spell targeting (#1934) --- Projects/UOContent/Spells/Targeting/SpellTarget.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Projects/UOContent/Spells/Targeting/SpellTarget.cs b/Projects/UOContent/Spells/Targeting/SpellTarget.cs index ccc9be520..056fed472 100644 --- a/Projects/UOContent/Spells/Targeting/SpellTarget.cs +++ b/Projects/UOContent/Spells/Targeting/SpellTarget.cs @@ -29,11 +29,13 @@ public class SpellTarget : Target, ISpellTarget where T : class, IPoint3D public ITargetingSpell Spell => _spell; protected override bool CanTarget(Mobile from, StaticTarget staticTarget, ref Point3D loc, ref Map map) - => _canTargetStatic; + => base.CanTarget(from, staticTarget, ref loc, ref map) && _canTargetStatic; - protected override bool CanTarget(Mobile from, Mobile mobile, ref Point3D loc, ref Map map) => _canTargetMobile; + protected override bool CanTarget(Mobile from, Mobile mobile, ref Point3D loc, ref Map map) => + base.CanTarget(from, mobile, ref loc, ref map) && _canTargetMobile; - protected override bool CanTarget(Mobile from, Item item, ref Point3D loc, ref Map map) => _canTargetItem; + protected override bool CanTarget(Mobile from, Item item, ref Point3D loc, ref Map map) => + base.CanTarget(from, item, ref loc, ref map) && _canTargetItem; protected override void OnCantSeeTarget(Mobile from, object o) {