fix: Fixes targeting ground with spells (#1937)

This commit is contained in:
Kamron Batman 2024-08-20 15:51:33 -07:00 • committed by GitHub
parent 4c5947e654
commit 35342e296e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 27 additions and 23 deletions

View file

@ -13,14 +13,18 @@ public class SpellTarget<T> : Target, ISpellTarget<T> where T : class, IPoint3D
public SpellTarget(
ITargetingSpell<T> spell,
TargetFlags flags = TargetFlags.None,
TargetFlags flags,
bool retryOnLos = false
) : this(spell, false, flags, retryOnLos)
{
}
public SpellTarget(ITargetingSpell<T> spell, bool allowGround, TargetFlags flags = TargetFlags.None, bool retryOnLos = false)
: base(spell.TargetRange, allowGround, flags)
public SpellTarget(
ITargetingSpell<T> spell,
bool allowGround = false,
TargetFlags flags = TargetFlags.None,
bool retryOnLos = false
) : base(spell.TargetRange, allowGround, flags)
{
_spell = spell;
_retryOnLos = retryOnLos;