summaryrefslogblamecommitdiff
path: root/npc/magic/level1-flare-dart.txt
blob: 6e88ec720fcf14be4b7d5b7a2d18837b0bba19a6 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                 
                                                          
                                               

                           



                                           





                                                   
// 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);
    // Rain penalty
    if ("#WeatherCore"::weather(MASK_RAIN))
        .@PW-=20;
    // Calculate real damage
    .@dmg=AdjustSpellpower(.@PW);
    harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Fire);
    GetManaExp(@skillId, 1);
    return;
}