From c294b4a0089b9da7dc027d6912e0d5951e0e77ad Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 11 Jul 2020 21:08:45 +0200 Subject: [PATCH] Fix a few settings for Nature's Switfness. And small tweaks. --- .../naturalist/spells/18_natures_swiftness_rank_1.tres | 3 ++- game/scripts/spells/gd_spell_script.gd | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/game/modules/entity_classes/naturalist/spells/18_natures_swiftness_rank_1.tres b/game/modules/entity_classes/naturalist/spells/18_natures_swiftness_rank_1.tres index 6ef15cab..c986a3ba 100644 --- a/game/modules/entity_classes/naturalist/spells/18_natures_swiftness_rank_1.tres +++ b/game/modules/entity_classes/naturalist/spells/18_natures_swiftness_rank_1.tres @@ -9,7 +9,7 @@ resource_name = "Nature's Swiftness" id = 8 spell_type = 8 target_type = 520 -target_relation_type = 393653346 +target_relation_type = 1 rank = 1 icon = ExtResource( 3 ) caster_aura_applys = [ ExtResource( 1 ) ] @@ -18,6 +18,7 @@ text_description = "Instant. Cooldown: %%cooldown_cooldown sec Increases your movement speed by 60% for 6 sec. This spell is not on the global cooldown." cooldown_cooldown = 20.0 +cooldown_global_cooldown_enabled = false aoe_targetType = 520 aoe_colliderType = 186459648 script = ExtResource( 2 ) diff --git a/game/scripts/spells/gd_spell_script.gd b/game/scripts/spells/gd_spell_script.gd index 24abb457..fae26825 100644 --- a/game/scripts/spells/gd_spell_script.gd +++ b/game/scripts/spells/gd_spell_script.gd @@ -91,7 +91,7 @@ func _cast_starts(info : SpellCastInfo) -> void: if info.target: info.target.notification_scast(SpellEnums.NOTIFICATION_CAST_FINISHED_TARGET, info) - + handle_cooldown(info) # if projectile != null: @@ -152,8 +152,8 @@ func handle_effect(info : SpellCastInfo) -> void: # if not ok: # return - elif target_type == SPELL_TARGET_TYPE_SELF: - info.target = info.caster +# elif target_type == SPELL_TARGET_TYPE_SELF: +# info.target = info.caster if damage_enabled and info.target: var sdi : SpellDamageInfo = SpellDamageInfo.new()