mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
10 lines
293 B
GDScript3
10 lines
293 B
GDScript3
|
extends Aura
|
||
|
|
||
|
export(String) var spell_name : String
|
||
|
export(float) var reduction_value : float
|
||
|
|
||
|
func _notification_ccast(what : int, data : AuraData, info: SpellCastInfo):
|
||
|
if SpellEnums.NOTIFICATION_CAST_STARTED:
|
||
|
if info.spell.get_name() == spell_name:
|
||
|
info.cast_time -= reduction_value
|