You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
388 B

  1. module.exports = {
  2. type: 'stunned',
  3. init: function () {
  4. if (this.obj.spellbook)
  5. this.obj.spellbook.stopCasting();
  6. },
  7. events: {
  8. beforeMove: function (targetPos) {
  9. targetPos.success = false;
  10. },
  11. beforeDealDamage: function ({ damage }) {
  12. if (damage)
  13. damage.failed = true;
  14. },
  15. beforeCastSpell: function (successObj) {
  16. successObj.success = false;
  17. }
  18. }
  19. };