summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorxantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-22 02:13:09 +0000
committerxantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-22 02:13:09 +0000
commit9b452a0918913ab0956ac17fee6b1c49815af3f7 (patch)
tree523af91f6efb7225094aa384497b66255332df49 /src/map/skill.c
parenta72cf01c7ca53a6ffc810a2b1983ad8b34ef0467 (diff)
downloadhercules-9b452a0918913ab0956ac17fee6b1c49815af3f7.tar.gz
hercules-9b452a0918913ab0956ac17fee6b1c49815af3f7.tar.bz2
hercules-9b452a0918913ab0956ac17fee6b1c49815af3f7.tar.xz
hercules-9b452a0918913ab0956ac17fee6b1c49815af3f7.zip
Fixed Royal Guard's Banding skill & icon activation (bugreport:5210)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15627 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 3e3b88ae2..83d2b8adc 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -13431,7 +13431,7 @@ int skill_delunitgroup_(struct skill_unit_group *group, const char* file, int li
break;
case LG_BANDING:
{
- struct status_change *sc = NULL;
+ struct status_change *sc = NULL;
if( (sc = status_get_sc(src)) && sc->data[SC_BANDING] ) {
sc->data[SC_BANDING]->val4 = 0;
status_change_end(src,SC_BANDING,-1);
@@ -13684,6 +13684,21 @@ static int skill_unit_timer_sub (DBKey key, void* data, va_list ap)
skill_delunit(unit);
break;
}
+
+ case UNT_BANDING:
+ {
+ struct block_list *src = map_id2bl(group->src_id);
+ struct status_change *sc;
+ if( !src || (sc = status_get_sc(src)) == NULL || !sc->data[SC_BANDING] )
+ {
+ skill_delunit(unit);
+ break;
+ }
+ // This unit isn't removed while SC_BANDING is active.
+ group->limit = DIFF_TICK(tick+group->interval,group->tick);
+ unit->limit = DIFF_TICK(tick+group->interval,group->tick);
+ }
+ break;
default:
skill_delunit(unit);