Browse Source

Fixed an issue of Nostrum not being reapplied when ressurecting quickly with Grace/Vow

TeraProxy 9 years ago
parent
commit
b066998afe
2 changed files with 4 additions and 4 deletions
  1. 2 0
      README.md
  2. 2 4
      index.js

+ 2 - 0
README.md

@@ -18,6 +18,8 @@ The script makes sure that you are not dead, mounted, in a battleground or in a
 Contains code from true-everful-nostrum by Pinkie Pie https://github.com/pinkipi  
   
 ## Changelog
+### 1.3.1
+* [*] Fixed an issue of Nostrum not being reapplied when ressurecting quickly with Grace/Vow
 ### 1.3.0
 * [+] The random timer for Nostrum now waits for loading to be finished before it starts instead of being hardcoded
 * [+] Will now wait until your Goddess Blessing buff ended before it uses Nostrum so you stay immune to damage

+ 2 - 4
index.js

@@ -1,4 +1,4 @@
-// Version 1.3.0
+// Version 1.3.1
 // Contains code from true-everful-nostrum by Pinkie Pie https://github.com/pinkipi
 const Command = require('command')
 
@@ -70,9 +70,7 @@ module.exports = function Essentials(dispatch) {
 	
 	dispatch.hook('S_CREATURE_LIFE', 1, event => {
 		if(event.target.equals(cid) && alive != event.alive) {
-			setTimeout(() => {
-				nostrum(!(alive = event.alive))
-			}, 2000)
+			nostrum(!(alive = event.alive))
 			
 			if(!alive) {
 				nextUse = 0