summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-24 06:45:48 -0200
committershennetsind <ind@henn.et>2013-10-24 07:03:30 -0200
commite08c05a0f73d6e6ea4fe64a9b91291bc0a002251 (patch)
treeefe8ae89989a63c008db2cf244c9ea1eb93b3711 /src/map/unit.c
parent8b07c677e351056b0d23fbc3726f80829ae4d253 (diff)
downloadhercules-e08c05a0f73d6e6ea4fe64a9b91291bc0a002251.tar.gz
hercules-e08c05a0f73d6e6ea4fe64a9b91291bc0a002251.tar.bz2
hercules-e08c05a0f73d6e6ea4fe64a9b91291bc0a002251.tar.xz
hercules-e08c05a0f73d6e6ea4fe64a9b91291bc0a002251.zip
Added idletime options
There have been requests for the extension of the feature, I was reluctant given more options would cause features relying on the feature to be easier to counter (less accurate), with the modification of the feature to employ options the feature is now configurable at the server owners discretion. Special Thanks to Haruna Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index a7aca10b9..a9cbd605e 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1915,7 +1915,7 @@ int unit_attack_timer_sub(struct block_list* src, int tid, unsigned int tick)
}
if(ud->state.attack_continue) {
- if( src->type == BL_PC )
+ if( src->type == BL_PC && battle_config.idletime_criteria & BCIDLE_ATTACK )
((TBL_PC*)src)->idletime = last_tick;
ud->attacktimer = timer->add(ud->attackabletime,unit->attack_timer,src->id,0);
}