Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

42 rindas
722 B

  1. module.exports = {
  2. type: 'reflectDamage',
  3. cdMax: 0,
  4. manaCost: 0,
  5. duration: 10,
  6. targetGround: true,
  7. cast: function (action) {
  8. let selfEffect = this.obj.effects.addEffect({
  9. type: 'reflectDamage',
  10. threatMult: this.threatMult
  11. });
  12. let ttl = this.duration * consts.tickTime;
  13. if (this.animation) {
  14. this.obj.instance.syncer.queue('onGetObject', {
  15. id: this.obj.id,
  16. components: [{
  17. type: 'animation',
  18. template: this.animation
  19. }]
  20. }, -1);
  21. }
  22. this.queueCallback(this.endEffect.bind(this, selfEffect), ttl - 50);
  23. return true;
  24. },
  25. endEffect: function (selfEffect) {
  26. if (this.obj.destroyed)
  27. return;
  28. let obj = this.obj;
  29. obj.effects.removeEffect(selfEffect.id);
  30. }
  31. };