Created
August 5, 2017 00:50
-
-
Save jwulf/55dee760c6e3804cec342e5a1dac5412 to your computer and use it in GitHub Desktop.
Snowballer spell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const magik = magikcraft.io; | |
function sb(repeats = 200, delay = 300) { | |
magik.dixit('Snowball!'); | |
const sender = magik.getSender(); | |
const snowball = magik.type("entity.Snowball").class; | |
const hurl = (thing) => () => sender.launchProjectile(thing) | |
const volley = () => magik.doNTimes(hurl(snowball), repeats, delay, null); | |
magik.doNTimes(volley, repeats, delay*10, null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment