Some spell code reorg
Keep the internal spell array index inside spell.c, and refer to spells outside of it with the otyp id.
This commit is contained in:
@@ -763,7 +763,7 @@ dotele(
|
||||
if (castit) {
|
||||
/* energy cost is deducted in spelleffects() */
|
||||
exercise(A_WIS, TRUE);
|
||||
if ((spelleffects(spell_idx(SPE_TELEPORT_AWAY), TRUE) & ECMD_TIME))
|
||||
if ((spelleffects(SPE_TELEPORT_AWAY, TRUE) & ECMD_TIME))
|
||||
return 1;
|
||||
else if (!break_the_rules)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user