local bestialAshes = { [118] = true, -- Hoarah Loux's Earthshaker [143] = true, -- Troll's Roar [198] = true, -- Ordovis's Greatsword [209] = true, -- Siluria's Woe [256] = true, -- Aspects of the Crucible: Wings [259] = true, -- Horn Calling: Storm [319] = true, -- Devonia's Vortex [323] = true, -- Golden Crux [328] = true, -- Euporia Vortex [356] = true, -- Jori's Inquisition [362] = true, -- Horn Calling [383] = true, -- Bestial Mauling [385] = true, -- Crucible's Fury } function BestialJewel_OnAsh() if env(GetSpEffectID, 391800) == TRUE and bestialAshes[c_SwordArtsID] then if env(GetSpEffectID, 1685200) == TRUE then act(AddSpEffect, 550005) else act(AddSpEffect, 550000) end end end function BestialJewelImprovedBuffHandler(oldSpEffect, newSpEffect) if env(GetSpEffectID, 391810) == TRUE and env(GetSpEffectID, oldSpEffect) == TRUE then act(ClearSpEffect, oldSpEffect) act(AddSpEffect, newSpEffect) end end function BestialJewelWeaponBuffHandler(spEffectID, handStyle) if env(GetSpEffectID, Jewel_of_the_Crucible) == TRUE and c_Style == handStyle then act(AddSpEffect, spEffectID) end end function BestialJewelWeaponBuffHandler_LightRight() BestialJewelWeaponBuffHandler(391850, HAND_RIGHT) end AttackRightLight1_onUpdate = AttachBefore(AttackRightLight1_onUpdate, BestialJewelWeaponBuffHandler_LightRight) AttackRightLight2_onUpdate = AttachBefore(AttackRightLight2_onUpdate, BestialJewelWeaponBuffHandler_LightRight) AttackRightLight3_onUpdate = AttachBefore(AttackRightLight3_onUpdate, BestialJewelWeaponBuffHandler_LightRight) AttackRightLight4_onUpdate = AttachBefore(AttackRightLight4_onUpdate, BestialJewelWeaponBuffHandler_LightRight) AttackRightLight5_onUpdate = AttachBefore(AttackRightLight5_onUpdate, BestialJewelWeaponBuffHandler_LightRight) AttackRightLight6_onUpdate = AttachBefore(AttackRightLight6_onUpdate, BestialJewelWeaponBuffHandler_LightRight) AttackRightLightStep_onUpdate = AttachBefore(AttackRightLightStep_onUpdate, BestialJewelWeaponBuffHandler_LightRight) AttackRightLightStealth_onUpdate = AttachBefore(AttackRightLightStealth_onUpdate, BestialJewelWeaponBuffHandler_LightRight) AttackRightLightFastStep_onUpdate = AttachBefore(AttackRightLightFastStep_onUpdate, BestialJewelWeaponBuffHandler_LightRight) AttackRightLightDash_onUpdate = AttachBefore(AttackRightLightDash_onUpdate, BestialJewelWeaponBuffHandler_LightRight) AttackRightLightSubStart_onUpdate = AttachBefore(AttackRightLightSubStart_onUpdate, BestialJewelWeaponBuffHandler_LightRight) AttackRightLightCounter_onUpdate = AttachBefore(AttackRightLightCounter_onUpdate, BestialJewelWeaponBuffHandler_LightRight) -- Check with Kmstr, CMSG not working function BestialJewelWeaponBuffHandler_LightLeft() BestialJewelWeaponBuffHandler(391851, HAND_LEFT) end AttackLeftLight1_onUpdate = AttachBefore(AttackLeftLight1_onUpdate, BestialJewelWeaponBuffHandler_LightLeft) function BestialJewelWeaponBuffHandler_LightDual() BestialJewelWeaponBuffHandler(391850, HAND_RIGHT_BOTH) BestialJewelWeaponBuffHandler(391851, HAND_LEFT_BOTH) end AttackDualLight1_onUpdate = AttachBefore(AttackDualLight1_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackDualLight2_onUpdate = AttachBefore(AttackDualLight2_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackDualLight3_onUpdate = AttachBefore(AttackDualLight3_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackDualLight4_onUpdate = AttachBefore(AttackDualLight4_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackDualLight5_onUpdate = AttachBefore(AttackDualLight5_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackDualLight6_onUpdate = AttachBefore(AttackDualLight6_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackDualDash_onUpdate = AttachBefore(AttackDualDash_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackDualRolling_onUpdate = AttachBefore(AttackDualRolling_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackDualStealth_onUpdate = AttachBefore(AttackDualStealth_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackDualBackStep_onUpdate = AttachBefore(AttackDualBackStep_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackDualLightSubStart_onUpdate = AttachBefore(AttackDualLightSubStart_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackBothLight1_onUpdate = AttachBefore(AttackBothLight1_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackBothLight2_onUpdate = AttachBefore(AttackBothLight2_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackBothLight3_onUpdate = AttachBefore(AttackBothLight3_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackBothLight4_onUpdate = AttachBefore(AttackBothLight4_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackBothLight5_onUpdate = AttachBefore(AttackBothLight5_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackBothLight6_onUpdate = AttachBefore(AttackBothLight6_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackBothLightSubStart_onUpdate = AttachBefore(AttackBothLightSubStart_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackBothLightStep_onUpdate = AttachBefore(AttackBothLightStep_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackBothLightStealth_onUpdate = AttachBefore(AttackBothLightStealth_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackBothLightGuard_onUpdate = AttachBefore(AttackBothLightGuard_onUpdate, BestialJewelWeaponBuffHandler_LightDual) AttackBothLightCounter_onUpdate = AttachBefore(AttackBothLightCounter_onUpdate, BestialJewelWeaponBuffHandler_LightDual) function BestialJewelWeaponBuffHandler_HeavyRight() BestialJewelWeaponBuffHandler(391860, HAND_RIGHT) end AttackRightHeavyDash_onUpdate = AttachBefore(AttackRightHeavyDash_onUpdate, BestialJewelWeaponBuffHandler_HeavyRight) AttackRightHeavy1SubStart_onUpdate = AttachBefore(AttackRightHeavy1SubStart_onUpdate, BestialJewelWeaponBuffHandler_HeavyRight) AttackRightHeavy1Start_onUpdate = AttachBefore(AttackRightHeavy1Start_onUpdate, BestialJewelWeaponBuffHandler_HeavyRight) AttackRightHeavy1End_onUpdate = AttachBefore(AttackRightHeavy1End_onUpdate, BestialJewelWeaponBuffHandler_HeavyRight) AttackRightHeavy2Start_onUpdate = AttachBefore(AttackRightHeavy2Start_onUpdate, BestialJewelWeaponBuffHandler_HeavyRight) AttackRightHeavy2End_onUpdate = AttachBefore(AttackRightHeavy2End_onUpdate, BestialJewelWeaponBuffHandler_HeavyRight) AttackRightHeavySpecial1SubStart_onUpdate = AttachBefore(AttackRightHeavySpecial1SubStart_onUpdate, BestialJewelWeaponBuffHandler_HeavyRight) AttackRightHeavySpecial1Start_onUpdate = AttachBefore(AttackRightHeavySpecial1Start_onUpdate, BestialJewelWeaponBuffHandler_HeavyRight) AttackRightHeavySpecial1End_onUpdate = AttachBefore(AttackRightHeavySpecial1End_onUpdate, BestialJewelWeaponBuffHandler_HeavyRight) AttackRightHeavySpecial2Start_onUpdate = AttachBefore(AttackRightHeavySpecial2Start_onUpdate, BestialJewelWeaponBuffHandler_HeavyRight) AttackRightHeavySpecial2End_onUpdate = AttachBefore(AttackRightHeavySpecial2End_onUpdate, BestialJewelWeaponBuffHandler_HeavyRight) AttackRightHeavyCounter_onUpdate = AttachBefore(AttackRightHeavyCounter_onUpdate, BestialJewelWeaponBuffHandler_HeavyRight) function BestialJewelWeaponBuffHandler_HeavyLeft() BestialJewelWeaponBuffHandler(391861, HAND_LEFT) end AttackLeftHeavy1_onUpdate = AttachBefore(AttackLeftHeavy1_onUpdate, BestialJewelWeaponBuffHandler_HeavyLeft) AttackLeftHeavy2_onUpdate = AttachBefore(AttackLeftHeavy2_onUpdate, BestialJewelWeaponBuffHandler_HeavyLeft) AttackLeftHeavy3_onUpdate = AttachBefore(AttackLeftHeavy3_onUpdate, BestialJewelWeaponBuffHandler_HeavyLeft) AttackLeftHeavy4_onUpdate = AttachBefore(AttackLeftHeavy4_onUpdate, BestialJewelWeaponBuffHandler_HeavyLeft) AttackLeftHeavy5_onUpdate = AttachBefore(AttackLeftHeavy5_onUpdate, BestialJewelWeaponBuffHandler_HeavyLeft) AttackLeftHeavy6_onUpdate = AttachBefore(AttackLeftHeavy6_onUpdate, BestialJewelWeaponBuffHandler_HeavyLeft) function BestialJewelWeaponBuffHandler_HeavyDual() BestialJewelWeaponBuffHandler(391860, HAND_RIGHT_BOTH) BestialJewelWeaponBuffHandler(391861, HAND_LEFT_BOTH) end AttackBothHeavy1SubStart_onUpdate = AttachBefore(AttackBothHeavy1SubStart_onUpdate, BestialJewelWeaponBuffHandler_HeavyDual) AttackBothHeavy1Start_onUpdate = AttachBefore(AttackBothHeavy1Start_onUpdate, BestialJewelWeaponBuffHandler_HeavyDual) AttackBothHeavy1End_onUpdate = AttachBefore(AttackBothHeavy1End_onUpdate, BestialJewelWeaponBuffHandler_HeavyDual) AttackBothHeavy2Start_onUpdate = AttachBefore(AttackBothHeavy2Start_onUpdate, BestialJewelWeaponBuffHandler_HeavyDual) AttackBothHeavy2End_onUpdate = AttachBefore(AttackBothHeavy2End_onUpdate, BestialJewelWeaponBuffHandler_HeavyDual) AttackBothHeavySpecial1SubStart_onUpdate = AttachBefore(AttackBothHeavySpecial1SubStart_onUpdate, BestialJewelWeaponBuffHandler_HeavyDual) AttackBothHeavySpecial1Start_onUpdate = AttachBefore(AttackBothHeavySpecial1Start_onUpdate, BestialJewelWeaponBuffHandler_HeavyDual) AttackBothHeavySpecial1End_onUpdate = AttachBefore(AttackBothHeavySpecial1End_onUpdate, BestialJewelWeaponBuffHandler_HeavyDual) AttackBothHeavySpecial2Start_onUpdate = AttachBefore(AttackBothHeavySpecial2Start_onUpdate, BestialJewelWeaponBuffHandler_HeavyDual) AttackBothHeavySpecial2End_onUpdate = AttachBefore(AttackBothHeavySpecial2End_onUpdate, BestialJewelWeaponBuffHandler_HeavyDual) AttackBothHeavyDash_onUpdate = AttachBefore(AttackBothHeavyDash_onUpdate, BestialJewelWeaponBuffHandler_HeavyDual) AttackBothHeavyCounter_onUpdate = AttachBefore(AttackBothHeavyCounter_onUpdate, BestialJewelWeaponBuffHandler_HeavyDual)