diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-04-30 19:13:57 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-30 19:13:57 -0400 |
commit | 102fa8098d7817915bf945303660445e1b4c2ce9 (patch) | |
tree | 8492a8351586a289526edbe442b82f0472566c6a /world | |
parent | b5dd782fc8080ca5e8b3ca1bb835582820872138 (diff) | |
download | serverdata-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')
-rw-r--r-- | world/map/npc/magic/_procedures.txt | 1 |
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; |