summaryrefslogtreecommitdiff
path: root/world/map/npc
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-04-30 19:13:57 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-30 19:13:57 -0400
commit102fa8098d7817915bf945303660445e1b4c2ce9 (patch)
tree8492a8351586a289526edbe442b82f0472566c6a /world/map/npc
parentb5dd782fc8080ca5e8b3ca1bb835582820872138 (diff)
downloadserverdata-102fa8098d7817915bf945303660445e1b4c2ce9.tar.gz
serverdata-102fa8098d7817915bf945303660445e1b4c2ce9.tar.bz2
serverdata-102fa8098d7817915bf945303660445e1b4c2ce9.tar.xz
serverdata-102fa8098d7817915bf945303660445e1b4c2ce9.zip
fix `battlemage` bug (prevent casting with a grey bar)
Diffstat (limited to 'world/map/npc')
-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;