From 385a255d2ffffd4614620f882412ee359f085bb9 Mon Sep 17 00:00:00 2001 From: skotlex Date: Sat, 29 Jul 2006 17:39:36 +0000 Subject: - Made the SQL ping interval default to 7 hours. - Memorize cast time now can't be reduced by status changes neither. - Made skill_unitsetting remove the group when no unit-cells were placed down. basicly this means that if landprotector blocks all tiles, the group will be removed from memory, preventing said group from counting to the total number of skills you can set. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7972 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index bd274ec46..6ad70db0f 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6775,6 +6775,11 @@ struct skill_unit_group *skill_unitsetting (struct block_list *src, int skillid, unit->bl.x,unit->bl.y,group->bl_flag,&unit->bl,gettick(),1); } } + if (!group->alive_count) + { //No cells? Something that was blocked completely by Land Protector? + skill_delunitgroup(src, group); + return NULL; + } return group; } -- cgit v1.2.3-60-g2f50