summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-27 03:49:08 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-27 03:49:08 +0000
commit861ecd7929441a24b63262c902d65886fc7654ff (patch)
tree2b54b04bf28bad18f48a2b8fe080f0b53bf0cfaf /src/map/skill.c
parent7d4f027077dd34c49ec7d8b90c3981126068ec67 (diff)
downloadhercules-861ecd7929441a24b63262c902d65886fc7654ff.tar.gz
hercules-861ecd7929441a24b63262c902d65886fc7654ff.tar.bz2
hercules-861ecd7929441a24b63262c902d65886fc7654ff.tar.xz
hercules-861ecd7929441a24b63262c902d65886fc7654ff.zip
- Corrected the element of hunter traps.
- Deadly Poison now also reduces def2 by 25% - Changed skill_setmapcell to use skill splash rather than range. - Cleaned up a bit skill_moonlit, now it knocks back the correct amount of cells. - Fixed @mi displaying always 0 instead of the mob's class. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7351 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 21e76cfe1..aa55ea971 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -7233,16 +7233,14 @@ static int skill_moonlit_sub(struct block_list *bl, va_list ap) {
*/
static void skill_moonlit (struct block_list* src, struct block_list* partner, int skilllv)
{
- int range = skill_get_range2(src, CG_MOONLIT, skilllv);
+ int range = skill_get_splash(CG_MOONLIT, skilllv);
int blowcount = range+1, time = skill_get_time(CG_MOONLIT,skilllv);
map_foreachinrange(skill_moonlit_sub,src,
- skill_get_splash(CG_MOONLIT, skilllv),
- BL_CHAR,src,partner,blowcount);
+ range, BL_CHAR,src,partner,blowcount);
if(partner)
map_foreachinrange(skill_moonlit_sub,partner,
- skill_get_splash(CG_MOONLIT, skilllv),
- BL_CHAR,src,partner,blowcount);
+ range, BL_CHAR,src,partner,blowcount);
sc_start4(src,SC_DANCING,100,CG_MOONLIT,0,0,partner?partner->id:BCT_SELF,time+1000);
sc_start4(src,SkillStatusChangeTable(CG_MOONLIT),100,skilllv,0,0,0,time);
@@ -8744,12 +8742,12 @@ void skill_unitsetmapcell (struct skill_unit *src, int skill_num, int skill_lv,
}
/*==========================================
- * Sets a map cell around the caster, according to the skill's range.
+ * Sets a map cell around the caster, according to the skill's splash range.
*------------------------------------------
*/
void skill_setmapcell (struct block_list *src, int skill_num, int skill_lv, int flag)
{
- int i,x,y,range = skill_get_range2(src, skill_num, skill_lv);
+ int i,x,y,range = skill_get_splash(skill_num, skill_lv);
int size = range*2+1;
for (i=0;i<size*size;i++) {