package Ġgg . r sm od . plugins . content . com bat . special attack . we apons . me lee Ċ Ċ import Ġgg . r sm od . plugins . content . com bat . deal Exact Hit Ċ import Ġgg . r sm od . plugins . content . com bat . deal Hit Ċ import Ġgg . r sm od . plugins . content . com bat . formula . Me lee Combat Formula Ċ import Ġgg . r sm od . plugins . content . com bat . special attack . Execution Type Ċ import Ġgg . r sm od . plugins . content . com bat . special attack . Special Attack s Ċ Ċ val ĠSPECIAL _ REQUIRE MENT Ġ= Ġ 5 0 Ċ Ċ Special Attack s . register ( int ArrayOf ( Items . DR AG ON _ CL AWS ), ĠSPECIAL _ REQUIRE MENT , ĠExecution Type . EXECUTE _ ON _ ATT ACK ) Ġ{ ĊĠĠĠ Ġval Ġmax Hit Ġ= ĠMe lee Combat Formula . getMax Hit ( player , Ġtarget , Ġspecial Attack Multiplier Ġ= Ġ 1 . 0 ) ĊĠĠĠ Ġval Ġaccuracy Ġ= ĠMe lee Combat Formula . get Accuracy ( player , Ġtarget , Ġspecial Attack Multiplier Ġ= Ġ 1 . 0 ) ĊĊĠĠĠ Ġplayer . animate ( id Ġ= Ġ 5 2 8 3 ) ĊĠĠĠ Ġplayer . graphic ( id Ġ= Ġ 1 1 7 1 , Ġheight Ġ= Ġ 0 ) ĊĊĠĠĠ Ġval Ġfirst Hit Damage Ġ= Ġ Ġcl aws Hit ( player , Ġtarget , Ġmax Hit , Ġaccuracy , Ġ 0 , Ġ 1 ) ĊĠĠĠ Ġval Ġsecond Hit Damage Ġ= Ġ Ġcl aws Hit ( player , Ġtarget , Ġmax Hit , Ġaccuracy , Ġfirst Hit Damage , Ġ 2 ) ĊĠĠĠ Ġval Ġthird Hit Damage Ġ= Ġcl aws Hit ( player , Ġtarget , Ġmax Hit , Ġaccuracy , Ġsecond Hit Damage , Ġ 3 ) ĊĠĠĠ Ġcl aws Hit ( player , Ġtarget , Ġmax Hit , Ġaccuracy , Ġwhen ( second Hit Damage ) Ġ{ Ġ 0 Ġ-> Ġthird Hit Damage Ġelse Ġ-> Ġ( second Hit Damage + 1 )/ 2 }, Ġ 4 ) Ċ } Ċ Ċ fun Ġcl aws Hit ( player Ġ: ĠPlayer Ġ, Ġtarget Ġ: ĠP awn , Ġmax Hit Ġ: ĠInt , Ġaccuracy Ġ: ĠDouble , Ġ Ġlast Hit Damage Ġ: ĠInt , Ġhit Number Ġ: ĠInt ) Ġ: ĠInt Ġ{ ĊĠĠĠ Ġvar Ġhit Damage Ġ= Ġworld . random ( max Hit ) ĊĠĠĠ Ġvar Ġland Hit Ġ= Ġaccuracy Ġ>= Ġworld . random Double () ĊĊĠĠĠ Ġif ( last Hit Damage Ġ!= Ġ 0 ) Ġ{ ĊĠĠĠĠĠĠĠ Ġhit Damage Ġ= Ġwhen ( hit Number ) Ġ{ Ġ 4 Ġ-> Ġlast Hit Damage ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> Ġ( last Hit Damage )/ 2 ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġland Hit Ġ= Ġtrue ĊĠĠĠ Ġ} Ġelse Ġif ( last Hit Damage Ġ== Ġ 0 Ġ&& Ġhit Number Ġ== Ġ 4 ) ĊĠĠĠĠĠĠĠ Ġhit Damage Ġ= Ġ( hit Damage * 1 . 5 ). toInt () ĊĊĠĠĠ Ġval Ġdelay Ġ= Ġ( hit Number - 1 )/ 2 ĊĠĠĠ Ġplayer . deal Exact Hit ( target Ġ= Ġtarget , Ġexact Hit Ġ= Ġhit Damage , Ġland Hit Ġ= Ġland Hit , Ġdelay Ġ= Ġdelay ) ĊĊĠĠĠ Ġreturn Ġwhen ( land Hit ) Ġ{ true -> Ġhit Damage Ġelse Ġ-> Ġ 0 } Ċ }