mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
New client spells (#8950)
* Added initial spell casting * added casting * Added spells style * Fixed linting issues * Added escape * Added casting * Added task drag style
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template lang="pug">
|
||||
.avatar(:style="{width, height, paddingTop}", :class="backgroundClass")
|
||||
.avatar(:style="{width, height, paddingTop}", :class="backgroundClass", @click.prevent='castEnd()')
|
||||
.character-sprites
|
||||
template(v-if="!avatarOnly")
|
||||
// Mount Body
|
||||
@@ -185,6 +185,10 @@ export default {
|
||||
|
||||
return result;
|
||||
},
|
||||
castEnd (e) {
|
||||
if (!this.$store.state.castingSpell) return;
|
||||
this.$root.$emit('castEnd', this.member, 'user', e);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user