summaryrefslogblamecommitdiff
path: root/npc/magic/level1-flare-dart.txt
blob: 2446fa9c9d49d5c2c91018d7aa24b179970f5dd4 (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);
    // Weather modifiers
    if ("#WeatherCore"::weather(MASK_RAIN))
        .@PW-=10;
    if ("#WeatherCore"::weather(MASK_SANDSTORM))
        .@PW+=10;
    // Calculate real damage
    .@dmg=AdjustSpellpower(.@PW);
    harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Fire);
    GetManaExp(@skillId, 1);
    return;
}