Browse Source

prod: created spellFreeze

remotes/origin/nextcycle
Kai Kehres 2 years ago
parent
commit
6c1a6334b0
  1. 10
      src/c/spell.c
  2. 1
      src/c/spell.h

10
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;
}

1
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
Loading…
Cancel
Save