Skip to content

Commit

Permalink
Streamlines recall target
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman committed Jul 13, 2024
1 parent 76ef524 commit cb24ff2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions Projects/UOContent/Spells/Targeting/IRecallSpell.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace Server.Spells;

public interface IRecallSpell
public interface IRecallSpell : IRangedSpell
{
Mobile Caster { get; }
void Effect(Point3D loc, Map map, bool checkMulti);
void FinishSequence();
}
4 changes: 3 additions & 1 deletion Projects/UOContent/Spells/Targeting/ITargetingSpell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ namespace Server.Spells;

public interface IRangedSpell
{
Mobile Caster { get; }

int TargetRange => Core.ML ? 10 : 12;
void FinishSequence();
}

public interface ITargetingSpell<in T> : IRangedSpell where T : IPoint3D
{
void Target(T target);
void FinishSequence();
}
2 changes: 1 addition & 1 deletion Projects/UOContent/Spells/Targeting/RecallSpellTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class RecallSpellTarget : Target
private readonly IRecallSpell _spell;
private readonly bool _toBoat;

public RecallSpellTarget(IRecallSpell spell, bool toBoat = true) : base(Core.ML ? 10 : 12, false, TargetFlags.None)
public RecallSpellTarget(IRecallSpell spell, bool toBoat = true) : base(spell.TargetRange, false, TargetFlags.None)
{
_spell = spell;
_toBoat = toBoat;
Expand Down

0 comments on commit cb24ff2

Please sign in to comment.