From b87d090446143bfafdc9e801f745edcb16d93767 Mon Sep 17 00:00:00 2001 From: zephyrus Date: Thu, 13 Mar 2008 04:03:37 +0000 Subject: - 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 - @killbarricade - 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 --- src/map/battle.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index 9026ea4d4..80660510f 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3104,6 +3104,10 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f if (!(agit_flag && map[m].flag.gvg_castle) && md->guardian_data && md->guardian_data->guild_id) return 0; //Disable guardians/emperiums owned by Guilds on non-woe times. + + if( md->class_ == MOBID_BARRICADEA && md->barricade ) + return 0; + break; } } -- cgit v1.2.3-60-g2f50