Play Home Contribute GitHub Join Us Discourse Staff Members GitHub Contribution Guides Team

Cast vs cast(insert name of spell here)


I just realized this cast and castShockwave(example) where very different and when I attempted to use shockwave I used the cast function (I was typing cast magic-missile l typed that a lot today) I shock wave did not work therefor I would like to either request the specific uses of each and/or remove an obsolete one


Wow no-one has answered to this postsigh


dont use the helper methods. use just plain cast(“spell”, target)


If you use the autoType of self.castShockwave it will shortcut to self.cast('shockwave',enemy). Similarly with self.castHaste shortcutting to self.cast('haste',self)

I wish there was a similar shortcut for self.cast('magic-missile',enemy)