summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-29 17:39:36 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-29 17:39:36 +0000
commit385a255d2ffffd4614620f882412ee359f085bb9 (patch)
tree75d0a82eceedd7aa2d83a45478520d944e92d11d /src/map/skill.c
parent8262f682cc36a79ce1f21b95243dd955d7aa0f68 (diff)
downloadhercules-385a255d2ffffd4614620f882412ee359f085bb9.tar.gz
hercules-385a255d2ffffd4614620f882412ee359f085bb9.tar.bz2
hercules-385a255d2ffffd4614620f882412ee359f085bb9.tar.xz
hercules-385a255d2ffffd4614620f882412ee359f085bb9.zip
- 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
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 5 insertions, 0 deletions
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;
}