MCPcopy Create free account
hub / github.com/diasurgical/devilution / HasRangedSpell

Function HasRangedSpell

SourceX/controls/plrctrls.cpp:166–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166bool HasRangedSpell()
167{
168 int spl = plr[myplr]._pRSpell;
169
170 return spl != SPL_INVALID
171 && spl != SPL_TOWN
172 && spl != SPL_TELEPORT
173 && spelldata[spl].sTargeted
174 && !spelldata[spl].sTownSpell;
175}
176
177bool CanTargetMonster(int mi)
178{

Callers 2

CheckMonstersNearbyFunction · 0.85
CheckPlayerNearbyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected