summaryrefslogtreecommitdiff
path: root/npc/magic/level1-flare-dart.txt
blob: b7e3565cd126752f7d153916010623857b280cdb (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
// The Mana World script
// Author: Jesusalva <jesusalva@themanaworld.org>
//
// Magic Script: SKILL_FLAR (Level 1)
// School: War 1

function	script	SK_Flar	{
    // Charge code, item check is in skill_db.conf (FIXME)
    mcharge(SulphurPowder, SKILL_MAGIC_WAR, 1);
    // Effective magic code
    .@PW=70+(5*@skillLv);
    // Weather modifiers
    if ("#WeatherCore"::weather(MASK_RAIN))
        .@PW-=20;
    if ("#WeatherCore"::weather(MASK_SANDSTORM))
        .@PW+=10;
    // Calculate real damage
    .@dmg=AdjustSpellpower(.@PW);
    harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Fire);
    GetManaExp(@skillId, 1);
    return;
}