From 102fa8098d7817915bf945303660445e1b4c2ce9 Mon Sep 17 00:00:00 2001 From: mekolat Date: Sat, 30 Apr 2016 19:13:57 -0400 Subject: fix `battlemage` bug (prevent casting with a grey bar) --- world/map/npc/magic/_procedures.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'world') 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; -- cgit v1.2.3-70-g09d2