summaryrefslogtreecommitdiff
path: root/world/map
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-04-30 20:28:42 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-30 20:28:42 -0400
commit0daef27de9b26aa1cdd61cd7c620d554c5517795 (patch)
tree366fb164b0858521f8b1c9c16733ed531685fc44 /world/map
parentb5dd782fc8080ca5e8b3ca1bb835582820872138 (diff)
downloadserverdata-0daef27de9b26aa1cdd61cd7c620d554c5517795.tar.gz
serverdata-0daef27de9b26aa1cdd61cd7c620d554c5517795.tar.bz2
serverdata-0daef27de9b26aa1cdd61cd7c620d554c5517795.tar.xz
serverdata-0daef27de9b26aa1cdd61cd7c620d554c5517795.zip
take mdef into account for `rain` spell
Diffstat (limited to 'world/map')
-rw-r--r--world/map/npc/magic/level2-rain.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/world/map/npc/magic/level2-rain.txt b/world/map/npc/magic/level2-rain.txt
index d3718170..53161b28 100644
--- a/world/map/npc/magic/level2-rain.txt
+++ b/world/map/npc/magic/level2-rain.txt
@@ -86,7 +86,7 @@ OnHit:
if(target(.caster, @target_id, 16) != 16 && .caster != @target_id) end;
if((get(BL_TYPE, @target_id) & 1) == 0) end; // either mob or pc
if(get(ELTTYPE, @target_id) == ELT_FIRE)
- injure .caster, @target_id, rand((@spellpower/15)+5)+2;
+ injure .caster, @target_id, ((rand((@spellpower/15)+5)+2) * (100 - get(MDEF1, @target_id))) / 100;
end;
OnDestroy: