summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-12 13:42:54 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-12 13:42:54 +0000
commite4d1b04f83674a0c0d766b12f906c66473a3e69c (patch)
tree07f5b8d79ab7b201a02041d549e46d624ce2113b /src
parent6a372419a29d0f37b2be63c33fc6ef137cb7ead0 (diff)
downloadhercules-e4d1b04f83674a0c0d766b12f906c66473a3e69c.tar.gz
hercules-e4d1b04f83674a0c0d766b12f906c66473a3e69c.tar.bz2
hercules-e4d1b04f83674a0c0d766b12f906c66473a3e69c.tar.xz
hercules-e4d1b04f83674a0c0d766b12f906c66473a3e69c.zip
- Baphomet splash damage will now hit nearby enemies regardless of flee (but the initial attack still has to connect for the splash to trigger)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8716 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/battle.c5
-rw-r--r--src/map/skill.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 7b90f2ff5..749a71aa6 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1056,6 +1056,11 @@ static struct Damage battle_calc_weapon_attack(
if (sc && sc->data[SC_SPIRIT].timer != -1 && sc->data[SC_SPIRIT].val2 == SL_CRUSADER)
flag.hit = 1;
break;
+ case 0:
+ //If flag, this is splash damage from Baphomet Card and it always hits.
+ if (wflag)
+ flag.hit = 1;
+ break;
}
if (tsc && !flag.hit && tsc->opt1 && tsc->opt1 != OPT1_STONEWAIT)
flag.hit = 1;
diff --git a/src/map/skill.c b/src/map/skill.c
index 78ef53fb5..3fa78d6f9 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3160,7 +3160,7 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int
if(sd) {
if (flag & 3){
if (bl->id != skill_area_temp[1])
- skill_attack(BF_WEAPON, src, src, bl, skillid, skilllv, tick, SD_ANIMATION);
+ skill_attack(BF_WEAPON, src, src, bl, skillid, skilllv, tick, SD_ANIMATION|flag);
} else {
skill_area_temp[1] = bl->id;
map_foreachinrange(skill_area_sub, bl,