broken_seals_roguelike/game/scripts/auras/CastTimeReductionAura.gd

10 lines
301 B
GDScript3
Raw Normal View History

2022-01-30 19:19:02 +01:00
extends SpellGD
export(String) var spell_name : String
export(float) var reduction_value : float
2022-01-30 19:19:02 +01:00
func _notification_aura_ccast(what : int, data : AuraData, info: SpellCastInfo):
if SpellEnums.NOTIFICATION_CAST_STARTED:
if info.spell.get_name() == spell_name:
info.cast_time -= reduction_value