Hero Magic Coat

Item ID 15094 Name Hero Magic Coat
Honorable magic coat given to those who fought Satan Morocc. The power of this robe changes based on Refine Level.
_______________________
MaxHP +5%
MaxSP +5%
MATK +10
FLEE +10
_______________________
Increases damage of Crimson Rock and Psychic Wave by 10%.
_______________________
If the Refine Level is an odd number, protects from skill cast interruption and the Variable Casting Time is increased by 20%.
If the Refine Level is an even number, MDEF +1 and the Variable Casting Time is reduced by 1% for every 2 Refine Level.
_______________________
Type: Armor
Defense: 50
Weight: 80
Armor Level: 1
_______________________
Requirement:
Base Level 160
Warlock and Sorcerer
Weapon Level 0 Identifier Hero_Magic_Coat
Attack 0 Type Armor
MATK 0 Equip Locations Armor
Defense 50 Equippable Jobs Mage, Wizard, Sage
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper Upper, Third, Third Upper, Third Baby
Weight 80 Min Equip Level 160
NPC Buy 10 Max Equip Level None
NPC Sell 5 Refineable Yes
Credit Price None Trade restriction None
Item Script
bonus bMatk,10;
bonus bMaxHPrate,5;
bonus bMaxSPrate,5;
bonus bFlee,10;
bonus2 bSkillAtk,"WL_CRIMSONROCK",10;
bonus2 bSkillAtk,"SO_PSYCHIC_WAVE",10;
.@r = getrefine();
if (.@r) {
   bonus bFixedCastrate,21-.@r/2;
   bonus bNoCastCancel2;
   bonus bMdef,.@r/2;
}