From 9f7c273a868ed525bb85c6fe4e44523c40e2bb09 Mon Sep 17 00:00:00 2001 From: IvanCraft623 Date: Mon, 5 Sep 2022 10:24:42 -0500 Subject: [PATCH] Update InstantDamage and Regeneration values --- src/entity/effect/InstantDamageEffect.php | 2 +- src/entity/effect/RegenerationEffect.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entity/effect/InstantDamageEffect.php b/src/entity/effect/InstantDamageEffect.php index 9461fd979f1..28d731079e2 100644 --- a/src/entity/effect/InstantDamageEffect.php +++ b/src/entity/effect/InstantDamageEffect.php @@ -33,7 +33,7 @@ class InstantDamageEffect extends InstantEffect{ public function applyEffect(Living $entity, EffectInstance $instance, float $potency = 1.0, ?Entity $source = null) : void{ //TODO: add particles (witch spell) - $damage = (4 << $instance->getAmplifier()) * $potency; + $damage = (6 << $instance->getAmplifier()) * $potency; if($source !== null){ $sourceOwner = $source->getOwningEntity(); if($sourceOwner !== null){ diff --git a/src/entity/effect/RegenerationEffect.php b/src/entity/effect/RegenerationEffect.php index 28ba2b18b17..f06ce67db38 100644 --- a/src/entity/effect/RegenerationEffect.php +++ b/src/entity/effect/RegenerationEffect.php @@ -30,7 +30,7 @@ class RegenerationEffect extends Effect{ public function canTick(EffectInstance $instance) : bool{ - if(($interval = (40 >> $instance->getAmplifier())) > 0){ + if(($interval = (50 >> $instance->getAmplifier())) > 0){ return ($instance->getDuration() % $interval) === 0; } return true;