diff options
author | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-25 11:07:30 +0000 |
---|---|---|
committer | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-25 11:07:30 +0000 |
commit | 5bf1ac604fd1cf6e8e20930180b8ef23907c9ba0 (patch) | |
tree | 3bfbc2cf0e6f3a9ff4520db84d30b50e257fb281 /src/map/battle.c | |
parent | 0ad60ff7f298f886be2c05955edd51cb50b58f0d (diff) | |
download | hercules-5bf1ac604fd1cf6e8e20930180b8ef23907c9ba0.tar.gz hercules-5bf1ac604fd1cf6e8e20930180b8ef23907c9ba0.tar.bz2 hercules-5bf1ac604fd1cf6e8e20930180b8ef23907c9ba0.tar.xz hercules-5bf1ac604fd1cf6e8e20930180b8ef23907c9ba0.zip |
Added a flag to skill_delunitgroup, skill_delunit & skill_unit_onlimit.
If 1 is passed, it will avoid UNT_WARP_ACTIVE to be transformed in UNT_WARP_WAITING and will destroy it. [Toms]
( To avoid such crash : http://www.eathena.ws/board/index.php?showtopic=114102 when the code need an empty slot and the oldest one is UNT_WARP_ACTIVE )
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8478 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 5886097e5..06af76610 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -263,7 +263,7 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,int damage,i struct skill_unit_group *group = (struct skill_unit_group *)sc->data[SC_SAFETYWALL].val3; if (group) { if (--group->val2<=0) - skill_delunitgroup(NULL,group); + skill_delunitgroup(NULL,group,0); return 0; } status_change_end(bl,SC_SAFETYWALL,-1); |