mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
15 lines
338 B
GDScript
15 lines
338 B
GDScript
extends "res://scripts/spells/gd_spell_script.gd"
|
|
|
|
export(String) var spell_name : String
|
|
export(float) var mod_value : float
|
|
|
|
func _sapply_passives_damage_deal(data : SpellDamageInfo):
|
|
var spell : Spell = data.spell_source_get()
|
|
|
|
if !spell:
|
|
return
|
|
|
|
if spell.get_name() == spell_name:
|
|
data.damage *= (100.0 + mod_value) / 100.0
|
|
|