Add invocation effect to Fire and Frost Brand

Casts fireball or cone of cold at expert level
This commit is contained in:
Pasi Kallinen
2025-04-13 13:10:24 +03:00
parent 652f8576c0
commit 85de51a69a
4 changed files with 17 additions and 2 deletions

View File

@@ -2024,6 +2024,18 @@ arti_invoke(struct obj *obj)
obj->age = svm.moves;
}
break;
case SNOWSTORM:
case FIRESTORM:
{
int storm = oart->inv_prop == SNOWSTORM ? SPE_CONE_OF_COLD : SPE_FIREBALL;
int skill = spell_skilltype(storm);
int expertise = P_SKILL(skill);
P_SKILL(skill) = P_EXPERT;
(void) spelleffects(storm, FALSE, TRUE);
P_SKILL(skill) = expertise;
}
break;
case BLINDING_RAY:
if (getdir((char *) 0)) {
if (u.dx || u.dy) {