diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-05-02 15:50:03 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-05-02 15:50:03 -0400 |
commit | 2f97a15b49bf8c43ff9761e058b1a19a13856067 (patch) | |
tree | e02bff24797209f1e3c92757e9e585a7ea619ba7 /world/map/npc/magic/level2-rain.txt | |
parent | 3907bdf50d9d76b7eec0a31bf3c41bd9a59aebf1 (diff) | |
parent | 615231b146f22c08eead3ac0b2f0572042f0c4d6 (diff) | |
download | serverdata-2f97a15b49bf8c43ff9761e058b1a19a13856067.tar.gz serverdata-2f97a15b49bf8c43ff9761e058b1a19a13856067.tar.bz2 serverdata-2f97a15b49bf8c43ff9761e058b1a19a13856067.tar.xz serverdata-2f97a15b49bf8c43ff9761e058b1a19a13856067.zip |
Merge pull request #495 from mekolat/injure
make spells use mdef
Diffstat (limited to 'world/map/npc/magic/level2-rain.txt')
-rw-r--r-- | world/map/npc/magic/level2-rain.txt | 2 |
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 32a2c0f8..9a498c08 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: |