mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-03 06:37:47 +01:00
Support for latest MythicLib SkillResult change
This commit is contained in:
parent
e091b0d3f8
commit
308af0127a
@ -172,7 +172,7 @@ public class Weapon extends UseItem {
|
||||
// Check for attack effect conditions
|
||||
final SkillMetadata meta = new TriggerMetadata(getPlayerData().getMMOPlayerData(), TriggerType.API).toSkillMetadata(new SimpleSkill(handler));
|
||||
final SkillResult result = handler.getResult(meta);
|
||||
if (!result.isSuccessful(meta)) return WeaponAttackResult.NO_ATTACK;
|
||||
if (!result.isSuccessful()) return WeaponAttackResult.NO_ATTACK;
|
||||
|
||||
// Check for durability
|
||||
UntargetedDurabilityItem durItem = new UntargetedDurabilityItem(getPlayer(), getNBTItem(), actionHand);
|
||||
|
Loading…
Reference in New Issue
Block a user