blob: b7e3565cd126752f7d153916010623857b280cdb (
plain) (
tree)
|
|
// 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;
}
|