# Talk:Ranged attack
Monster ranged attacks in melee range
Folklore has it that dragons and other monsters with innate ranged attacks cannot use their ranged attack on you if you are in melee range. Others can and do occasionally zap wands at you. Where is this handled in the code?
Non-"nearby" monsters (whatever that means) will only try to use ranged attacks, monmove.c, line 532. That doesn't seem to account for this phenomenon. --Tjr (talk) 12:58, 13 May 2012 (UTC)