MCPcopy Create free account
hub / github.com/crawl/crawl / casting_is_useless

Function casting_is_useless

crawl-ref/source/spl-util.cc:1177–1180  ·  view source on GitHub ↗

* Casting-specific checks that are involved when casting any spell. Includes * MP (which does use the spell level if provided), confusion state, banned * schools. * * @param spell The spell in question. * @param temp Include checks for volatile or temporary states * (status effects, mana) * @return Whether casting is useless */

Source from the content-addressed store, hash-verified

1175 * @return Whether casting is useless
1176 */
1177bool casting_is_useless(spell_type spell, bool temp)
1178{
1179 return !casting_uselessness_reason(spell, temp).empty();
1180}
1181
1182/**
1183 * Casting-specific checks that are involved when casting any spell or larger

Callers 1

_player_spell_descFunction · 0.85

Calls 2

emptyMethod · 0.45

Tested by

no test coverage detected