From 6c1a6334b03b2a164980f17ef168e03cd410f704 Mon Sep 17 00:00:00 2001 From: Kai Kehres Date: Sun, 29 Jan 2023 14:23:49 +0100 Subject: [PATCH] prod: created spellFreeze --- src/c/spell.c | 10 ++++++++++ src/c/spell.h | 1 + 2 files changed, 11 insertions(+) diff --git a/src/c/spell.c b/src/c/spell.c index 1266eec..35a53c9 100644 --- a/src/c/spell.c +++ b/src/c/spell.c @@ -43,4 +43,14 @@ SpellEffect spellRegeneration (Character *character) { regeneration.effect = SPELL_EFFECT_REGENERATION; regeneration.effectDuration = 2; return regeneration; +} + +SpellEffect spellFreeze(Character *character) { + SpellEffect freeze; + freeze.damage = 0; + freeze.healing = 0; + freeze.manaCost = 10; + freeze.effect = SPELL_EFFECT_FREEZE; + freeze.effectDuration = 2; + return freeze; } \ No newline at end of file diff --git a/src/c/spell.h b/src/c/spell.h index d9711cd..bcf4445 100644 --- a/src/c/spell.h +++ b/src/c/spell.h @@ -15,6 +15,7 @@ SpellEffect spellFireball(Character *character); SpellEffect spellHeal(Character *character); SpellEffect spellLightning(Character *character); SpellEffect spellRegeneration (Character *character); +SpellEffect spellFreeze(Character *character); #endif \ No newline at end of file