Prevents mecha drills from stacking do_afters on the same target. (#55145)

* Feex

* Feex 2.0 Feexlectric Feexaloo

* Whitespace purge
This commit is contained in:
Timberpoes
2020-11-24 21:27:42 +08:00
committed by GitHub
parent 467c764684
commit 191b3cde38
@@ -44,7 +44,8 @@
"<span class='userdanger'>[chassis] starts to drill [target]...</span>", \
"<span class='hear'>You hear drilling.</span>")
if(do_after_cooldown(target, source))
// You can't drill harder by clicking more.
if(!(target in source.do_afters) && do_after_cooldown(target, source))
log_message("Started drilling [target]", LOG_MECHA)
// Drilling a turf is a one-and-done procedure.
if(isturf(target))