Gold Fish Head Hat-LT

Item ID 400155 Name Gold Fish Head Hat-LT
An improved version of the puffing gold fish hat.
_______________________
Base Level at least 210:
P.ATK +2
S.MATK +2
_______________________
Physical attacks have a certain chance to grant Holy element to your weapon for 60 seconds.
Magical attacks have a certain chance to increase Magical Damage with Holy element by 20% for 60 seconds.
_______________________
Refine Level +7:
Increases Melee Physical Damage by 10%.
Increases Magical Damage with Holy element by 10%.
_______________________
Refine Level +9:
ATK +5%, MATK +5%
_______________________
Refine Level +11:
Increases Magical Damage against Shadow elemental by 20%.
_______________________
[Bonus by Grade]
[Grade D]: Melee physical damage +5%. Magical Damage with Holy element +5%.
[Grade C]: P.ATK +2, S.MATK +2
[Grade B]: Refine Level +12: Fixed Casting Time -0.5 seconds.
_______________________
Type: Headgear
Defense: 2
Position: Upper
Weight: 40
Armor Level: 2
_______________________
Requirement:
Base Level 150
Weapon Level 0 Identifier GoldFish_Hat_LT
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 2 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 40 Min Equip Level 150
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@g = getenchantgrade();
.@r = getrefine();
if (BaseLevel>=210) {
   bonus bPAtk,2;
   bonus bSMatk,2;
}
if (.@r>=7) {
   bonus2 bMagicAtkEle,Ele_Holy,10;
   bonus bShortAtkRate,10;
   if (.@r>=9) {
      bonus bAtkRate,5;
      bonus bMatkRate,5;
      if (.@r>=11) {
         bonus2 bMagicAddEle,Ele_Dark,20;
         bonus2 bAddEle,Ele_Dark,20;
      }
   }
}
if (.@g >= ENCHANTGRADE_D) {
   bonus2 bMagicAtkEle,Ele_Holy,5;
   bonus bShortAtkRate,5;
   if (.@g >= ENCHANTGRADE_C) {
      bonus bPAtk,2;
      bonus bSMatk,2;
      if (.@g >= ENCHANTGRADE_B) {
         if (.@r>=12) {
            bonus bFixedCast,-500;
         }
      }
   }
}
autobonus "{ bonus bAtkEle,Ele_Holy; }",1,60000,BF_WEAPON;
autobonus "{ bonus2 bMagicAtkEle,Ele_Holy,20; }",1,60000,BF_MAGIC;