Made a func for spell attacks in order to easier implement other spells in the future.