Circlet of Phoenix

Item ID 19343 Name Circlet of Phoenix
A bird-shaped crown that revives many times.
It is said that those who wear it have blessings.
_______________________
MDEF +15
_______________________
MaxHP +10%
_______________________
Decreases Variable Casting Time by 10%.
_______________________
Increases damage of Overbrand by 10%.
_______________________
Decreases Fixed Casting Time of Overbrand by 100%.
_______________________
When Level 5 King's Grace is learned:
Decreases Variable Casting Time of Inspiration by 2 seconds.
Decreases Inspiration skill cooldown by 10 seconds.
_______________________
When Level 5 Moon Slasher is learned:
Decreases Variable Casting Time of Overbrand by 1 second.
_______________________
When Level 5 Moon Slasher is learned:
MaxHP +10%, MaxSP +10%
DEF +150, MDEF +15
_______________________
Refine Level +7:
Decreases Variable Casting Time by 5%.
Increases damage of Overbrand by 15%.
_______________________
Refine Level +9:
Decreases Variable Casting Time by additional 5%.
Increases damage of Overbrand by additional 25%.
_______________________
Refine Level +10:
Ignores physical defense of all enemies by 100%.
_______________________
Type: Headgear
Defense: 18
Position: Upper
Weight: 100
Armor Level: 1
_______________________
Requirement:
Base Level 100
Weapon Level 0 Identifier Circlet_Of_Phoenix
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 18 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 0 Equip Upper None
Weight 100 Min Equip Level 100
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
.@mdef = 15;
.@hp = 10;
.@dmg = 10;
.@cast = -10;
bonus2 bFixedCastrate,"LG_OVERBRAND",-100;
if (.@r>=7) {
   .@cast -= 5;
   .@dmg += 15;
   if (.@r>=9) {
      .@cast -= 5;
      .@dmg += 25;
      if (.@r>=10) {
         bonus bIgnoreDefRace,RC_All;
      }
   }
}
if (getskilllv("LG_KINGS_GRACE")>=5) {
   bonus2 bSkillCooldown,"LG_INSPIRATION",-10000;
   bonus2 bSkillVariableCast,"LG_INSPIRATION",-2000;
}
if (getskilllv("LG_MOONSLASHER")>=5) {
   bonus2 bSkillVariableCast,"LG_OVERBRAND",-1000;
}
if (getskilllv("LG_FORCEOFVANGUARD")>=5) {
   .@hp += 10;
   .@mdef += 15;
   bonus bMaxSPrate,10;
   bonus bDef,150;
}
bonus bMdef,.@mdef;
bonus bMaxHPrate,.@hp;
bonus2 bSkillAtk,"LG_OVERBRAND",.@dmg;
bonus bVariableCastrate,.@cast;