How would I have a weapon cast a spell on attack and on block. I want it to do the spell on the attack swing, rather than the hit. I also want to cast a spell (for example ward) while the player is in a blocking stance. I was originally thinking of having it link with animations with the animation listener (I'm not sure if that is how it works, but I tried), but it wouldn't give me any results or output. Also as a more advanced question, how would I make a sword cast something when it hit a target (e.g. lifesteal), but something different if it didn't hit (e.g. fireball). Thanks in advance!