summaryrefslogtreecommitdiff
path: root/npc/magic/level2-lightning-strike.txt
blob: 97692d3e4f0c9ad04930de6f20fd57671c4198b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// The Mana World script
// Author: Jesusalva <jesusalva@themanaworld.org>
//
// Magic Script: SKILL_INGRAV (Level 1)
// School: War 2

function	script	SK_Ingrav	{
    // This one time, effects will come before
    specialeffect(FX_MAGIC_BOLT_CAST, AREA, getcharid(3));
    specialeffect(FX_LIGHTNING1+rand2(3), AREA, @skillTarget);
    // Charge code, item check is in skill_db.conf (FIXME)
    mcharge(IronPowder, SKILL_MAGIC_WAR, 1);
    .@PW=110+(20*@skillLv);
    // Weather modifiers
    .@dmg=AdjustSpellpower(.@PW);
    if ("#WeatherCore"::weather(MASK_RAIN))
        harm(getcharid(3), .@dmg*2/3, HARM_MAGI, Ele_Nature);
    // Effective magic code
    harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Nature);
    GetManaExp(@skillId, 2);
    return;
}