This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
gitlord
/
isleward
mirror of
https://gitlab.com/Isleward/isleward.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
203
Wiki
Activity
Browse Source
bug[
#1599
]: The afterCastSpell event is now fires after a castTime spell completes casting and the event also includes the action now
tags/v0.8.1^2
Shaun
3 years ago
parent
a9e1da7db4
commit
34e6214c7c
2 changed files
with
8 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
src/server/components/spellbook.js
+6
-0
src/server/config/spells/spellTemplate.js
+ 2
- 1
src/server/components/spellbook.js
View File
@@ -427,7 +427,8 @@ module.exports = {
this.obj.fireEvent('afterCastSpell', {
castSuccess: success,
spell
spell,
action
});
//Null means we didn't fail but are initiating casting
+ 6
- 0
src/server/config/spells/spellTemplate.js
View File
@@ -85,6 +85,12 @@ module.exports = {
this.consumeMana();
this.setCd();
this.currentAction = null;
this.obj.fireEvent('afterCastSpell', {
castSuccess: true,
spell: this,
action
});
}
} else {
if (this.onCastTick)
Write
Preview
Loading…
Cancel
Save