if ((caster == null) || !caster.isPlayer())
{
return;
}
Player player = caster.getPlayer();
Fishing fishing = player.getFishing();
if ((fishing == null) || !fishing.isInCombat())
{
return;
}
WeaponTemplate weaponItem = player.getActiveWeaponItem();
int SS = player.getChargedFishShot() ? 2 : 1;
int pen = 0;
double gradebonus = 1 + (weaponItem.getCrystalType().ordinal() * 0.1);
int dmg = (int) (getPower() * gradebonus * SS);
if (player.getSkillLevel(1315) < (getLevel() - 2))
{
player.sendPacket(Msg.SINCE_THE_SKILL_LEVEL_OF_REELING_PUMPING_IS_HIGHER_THAN_THE_LEVEL_OF_YOUR_FISHING_MASTERY_A_PENALTY_OF_S1_WILL_BE_APPLIED);
pen = 50;
int penatlydmg = dmg - pen;
dmg = penatlydmg;
}
if (SS == 2)
{
player.unChargeFishShot();
}
fishing.useFishingSkill(dmg, pen, getSkillType());
}