From 4f5d49a977ec2c0117999935105eb56330c2c2fd Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 19 Feb 2020 16:55:01 +0100 Subject: [PATCH] Implement scaling for aura damage, and heal. --- game/scripts/auras/aura_script.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game/scripts/auras/aura_script.gd b/game/scripts/auras/aura_script.gd index 86efc7b0..411e4607 100644 --- a/game/scripts/auras/aura_script.gd +++ b/game/scripts/auras/aura_script.gd @@ -26,6 +26,7 @@ func _handle_aura_damage(aura_data : AuraData, damage_info : SpellDamageInfo) -> randomize() damage_info.damage = damage_min + (randi() % (damage_max - damage_min)) + damage_info.damage *= damage_info.dealer.gets_level() / float(EntityEnums.MAX_CHARACTER_LEVEL) damage_info.damage_source_type = aura_data.aura.damage_type if (is_instance_valid(damage_info.dealer)): @@ -35,6 +36,7 @@ func _handle_aura_heal(aura_data : AuraData, shi : SpellHealInfo) -> void: randomize() shi.heal = heal_min + (randi() % (heal_max - heal_min)) + shi.damage *= shi.dealer.gets_level() / float(EntityEnums.MAX_CHARACTER_LEVEL) shi.heal_source_type = aura_data.aura.aura_type shi.dealer.sdeal_heal_to(shi)