summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-18 15:06:38 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-18 15:06:38 -0300
commit054bbf6de228285faee69f24e8b68da1ac8f51c5 (patch)
tree3d0b7699686e938fc41a0487f8612a3486838b30
parentd61ec7f7bf14509724c752f64c7bdb7bc703a072 (diff)
downloadserverdata-054bbf6de228285faee69f24e8b68da1ac8f51c5.tar.gz
serverdata-054bbf6de228285faee69f24e8b68da1ac8f51c5.tar.bz2
serverdata-054bbf6de228285faee69f24e8b68da1ac8f51c5.tar.xz
serverdata-054bbf6de228285faee69f24e8b68da1ac8f51c5.zip
Try a new rule for Confringo using damage caps.
The official damage is 30% of MATK as before, but... Before 100*magicpw it will use all your MATK, giving a bit of headstart.
-rw-r--r--npc/magic/level0-wand.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/npc/magic/level0-wand.txt b/npc/magic/level0-wand.txt
index d1990607..93ac60ff 100644
--- a/npc/magic/level0-wand.txt
+++ b/npc/magic/level0-wand.txt
@@ -9,11 +9,15 @@ function script SK_Confringo {
if (QL_MORGAN == 2)
set QL_MORGAN, 3;
// Effective magic code
- .@PW=30+(7*@skillLv);
+ .@PW=90+(7*@skillLv);
.@dmg=AdjustSpellpower(.@PW);
+ .@max=(1+getskilllv(SKILL_MAGIC))*100;
// Noobs adjustment
if (.@dmg < readparam(bInt))
.@dmg=rand2(.@dmg, readparam(bInt));
+ // Pro adjustment
+ if (.@dmg > .@max)
+ .@dmg = .@max + ((.@dmg - .@max) * 30 / 100)
harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Neutral);
return;
}