summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-05-02 15:30:01 -0400
committermekolat <mekolat@users.noreply.github.com>2016-05-02 15:30:01 -0400
commit3907bdf50d9d76b7eec0a31bf3c41bd9a59aebf1 (patch)
tree75aa9225a14969b21ac1d0cb1b4cc14fa5bd275c
parent1e1b1410e0dc8d187f6ee3cf6098a3d7a9499ebc (diff)
parent102fa8098d7817915bf945303660445e1b4c2ce9 (diff)
downloadserverdata-3907bdf50d9d76b7eec0a31bf3c41bd9a59aebf1.tar.gz
serverdata-3907bdf50d9d76b7eec0a31bf3c41bd9a59aebf1.tar.bz2
serverdata-3907bdf50d9d76b7eec0a31bf3c41bd9a59aebf1.tar.xz
serverdata-3907bdf50d9d76b7eec0a31bf3c41bd9a59aebf1.zip
Merge pull request #494 from mekolat/battlemage
fix battlemage bug
-rw-r--r--world/map/npc/magic/_procedures.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/world/map/npc/magic/_procedures.txt b/world/map/npc/magic/_procedures.txt
index b53aaa7c..8ffaa4d0 100644
--- a/world/map/npc/magic/_procedures.txt
+++ b/world/map/npc/magic/_procedures.txt
@@ -30,6 +30,7 @@ function|script|magic_checks
if(HIDDEN) set .@r, 1; // can not cast with @hide
if(@_M_BLOCK) set .@r, 2; // check if last debuff ended
if(Hp < 1) set .@r, 3; // can not cast when dead
+ if (MATK1 < 1) set .@r, 4; // can not cast with a grey mana bar
if (.@r)
smsg SMSG_FAILURE, "Magic: Impossible to cast right now.";
return .@r;