summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-13 04:03:37 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-13 04:03:37 +0000
commitb87d090446143bfafdc9e801f745edcb16d93767 (patch)
tree27041e48324d79829cdd290b5117cb5220a56cdc /src/map/status.c
parent9f3181501f0d95ffcc37bcb6a816c36362d1b164 (diff)
downloadhercules-b87d090446143bfafdc9e801f745edcb16d93767.tar.gz
hercules-b87d090446143bfafdc9e801f745edcb16d93767.tar.bz2
hercules-b87d090446143bfafdc9e801f745edcb16d93767.tar.xz
hercules-b87d090446143bfafdc9e801f745edcb16d93767.zip
- Added a fix for Abracadabra, this skills allways should use minimum a Yellow Gem.
- Added some code "suggestion" to handle the new Barricades, please test it with: - @barricade <x> <y> <size> <direction> <killable> <Event Name> - @killbarricade <Event Name> - If x and y are -1, it will use your current position. - Direction 0 Vertical 1 Horizontal. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12352 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 453c0b40e..be3c2c01c 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -4624,9 +4624,10 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
if( status_isdead(bl) )
return 0;
- if( bl->type == BL_MOB && ((TBL_MOB*)bl)->class_ == MOBID_EMPERIUM )
+ if( bl->type == BL_MOB )
{
- if( type != SC_SAFETYWALL && type != SC_PNEUMA )
+ struct mob_data *md = BL_CAST(BL_MOB,bl);
+ if( (md->class_ == MOBID_EMPERIUM && type != SC_SAFETYWALL && type != SC_PNEUMA) || md->class_ == MOBID_BARRICADEA )
return 0; //Emperium can't be afflicted by status changes
}