Skip to content

Commit

Permalink
fix: Fixes spell targeting (#1934)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman authored Aug 18, 2024
1 parent 25dfb5c commit 36c373b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Projects/UOContent/Spells/Targeting/SpellTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ public SpellTarget(ITargetingSpell<T> spell, bool allowGround, TargetFlags flags
public ITargetingSpell<T> 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)
{
Expand Down

0 comments on commit 36c373b

Please sign in to comment.