broken_seals_2d/game/scripts/auras/CastTimeReductionAura.gd

10 lines
302 B
GDScript3
Raw Normal View History

extends SpellGD
2021-02-21 16:45:04 +01:00
export(String) var spell_name : String
export(float) var reduction_value : float
func _notification_aura_ccasta(what : int, data : AuraData, info: SpellCastInfo):
2021-02-21 16:45:04 +01:00
if SpellEnums.NOTIFICATION_CAST_STARTED:
if info.spell.get_name() == spell_name:
info.cast_time -= reduction_value