Fix a few settings for Nature's Switfness. And small tweaks.

This commit is contained in:
Relintai 2020-07-11 21:08:45 +02:00
parent 8168adc914
commit c294b4a008
2 changed files with 5 additions and 4 deletions

View File

@ -9,7 +9,7 @@ resource_name = "Nature's Swiftness"
id = 8 id = 8
spell_type = 8 spell_type = 8
target_type = 520 target_type = 520
target_relation_type = 393653346 target_relation_type = 1
rank = 1 rank = 1
icon = ExtResource( 3 ) icon = ExtResource( 3 )
caster_aura_applys = [ ExtResource( 1 ) ] caster_aura_applys = [ ExtResource( 1 ) ]
@ -18,6 +18,7 @@ text_description = "Instant.
Cooldown: %%cooldown_cooldown sec Cooldown: %%cooldown_cooldown sec
Increases your movement speed by 60% for 6 sec. This spell is not on the global cooldown." Increases your movement speed by 60% for 6 sec. This spell is not on the global cooldown."
cooldown_cooldown = 20.0 cooldown_cooldown = 20.0
cooldown_global_cooldown_enabled = false
aoe_targetType = 520 aoe_targetType = 520
aoe_colliderType = 186459648 aoe_colliderType = 186459648
script = ExtResource( 2 ) script = ExtResource( 2 )

View File

@ -91,7 +91,7 @@ func _cast_starts(info : SpellCastInfo) -> void:
if info.target: if info.target:
info.target.notification_scast(SpellEnums.NOTIFICATION_CAST_FINISHED_TARGET, info) info.target.notification_scast(SpellEnums.NOTIFICATION_CAST_FINISHED_TARGET, info)
handle_cooldown(info) handle_cooldown(info)
# if projectile != null: # if projectile != null:
@ -152,8 +152,8 @@ func handle_effect(info : SpellCastInfo) -> void:
# if not ok: # if not ok:
# return # return
elif target_type == SPELL_TARGET_TYPE_SELF: # elif target_type == SPELL_TARGET_TYPE_SELF:
info.target = info.caster # info.target = info.caster
if damage_enabled and info.target: if damage_enabled and info.target:
var sdi : SpellDamageInfo = SpellDamageInfo.new() var sdi : SpellDamageInfo = SpellDamageInfo.new()