summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-04 17:26:07 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-04 17:26:07 +0000
commit134bf364c8deffa192fb77a323b92b708a2e2276 (patch)
tree606cb191f9a0d4a3897866a0c8086fed6a3b7333 /src/map/skill.c
parent23d9eff296a39897242648b4e5f89aaa14f945ea (diff)
downloadhercules-134bf364c8deffa192fb77a323b92b708a2e2276.tar.gz
hercules-134bf364c8deffa192fb77a323b92b708a2e2276.tar.bz2
hercules-134bf364c8deffa192fb77a323b92b708a2e2276.tar.xz
hercules-134bf364c8deffa192fb77a323b92b708a2e2276.zip
Small edits to battleground code (bugreport:2816)
- removed bg_idle_announce setting (could be considered later) - moved crystal protection code to battle_calc_bg_damage - removed mob state 'inmunity' in favor of a script-based solution - removed unneeded 'setmobdata' (fixes collision with mob controller) - added svn:eol-style native for battleground code git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13565 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 159f445ea..54f8495f8 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2983,10 +2983,9 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
int heal = skill_calc_heal(src, bl, skilllv);
int heal_get_jobexp;
- if( status_isimmune(bl) )
+ if( status_isimmune(bl) || (dstmd && (dstmd->class_ == MOBID_EMPERIUM || mob_is_battleground(dstmd))) )
heal=0;
- if( dstmd && (dstmd->class_ == MOBID_EMPERIUM || mob_is_battleground(dstmd)) )
- heal=0; // Emperium - BattleGround Mobs cannot be Healed
+
if( sd )
{
if( (i = pc_skillheal_bonus(sd, skillid)) )