mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-21 13:16:49 +01:00
Implement handling needs_target property to spell.
This commit is contained in:
parent
4f5d49a977
commit
882a0ef6de
@ -23,6 +23,11 @@ class_name SpellGD
|
|||||||
|
|
||||||
|
|
||||||
func _sstart_casting(info : SpellCastInfo) -> void:
|
func _sstart_casting(info : SpellCastInfo) -> void:
|
||||||
|
if needs_target and info.target == null:
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if info.caster.sis_casting():
|
if info.caster.sis_casting():
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user