diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-25 11:08:48 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-25 11:08:48 +0000 |
commit | ee7dda128a9c3004db9eb43b5e3376f74033ab87 (patch) | |
tree | 29020b7e9ed87833a40179c98bc909ecec907383 /src/map/battle.c | |
parent | 009e7837dea970aca8f6e2468c9cca310198fc21 (diff) | |
download | hercules-ee7dda128a9c3004db9eb43b5e3376f74033ab87.tar.gz hercules-ee7dda128a9c3004db9eb43b5e3376f74033ab87.tar.bz2 hercules-ee7dda128a9c3004db9eb43b5e3376f74033ab87.tar.xz hercules-ee7dda128a9c3004db9eb43b5e3376f74033ab87.zip |
* Some minor changes to Sacrifice in battle.c
* Set the Emperium to be immune to Sacrifice
* Set the Emperium to be have max status effects immunity
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1294 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 1a44dc9a7..9caa111b2 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -402,7 +402,7 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,int damage,i if(class_ == 1288 || class_ == 1287 || class_ == 1286 || class_ == 1285) { // if(class_ == 1288) { - if(class_ == 1288 && (flag&BF_SKILL || skill_num == ASC_BREAKER)) + if(class_ == 1288 && (flag&BF_SKILL || skill_num == ASC_BREAKER || skill_num == PA_SACRIFICE)) damage=0; if(src->type == BL_PC) { struct guild *g=guild_search(((struct map_session_data *)src)->status.guild_id); @@ -2436,6 +2436,8 @@ static struct Damage battle_calc_pc_weapon_attack( hitrate = 1000000; s_ele = 0; s_ele_ = 0; + skill_num = PA_SACRIFICE; + //clif_skill_nodamage(src,target,skill_num,skill_lv,1); // this doesn't show effect either.. hmm =/ sc_data[SC_SACRIFICE].val2 --; if (sc_data[SC_SACRIFICE].val2 == 0) status_change_end(src, SC_SACRIFICE,-1); |