mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
on-hit abilities now trigger on any type of damage
This commit is contained in:
parent
6aabc21835
commit
b7104ceea1
@ -47,10 +47,9 @@ public class ItemAttackMetadata extends AttackMetadata {
|
||||
* @return The unedited attack result
|
||||
*/
|
||||
public ItemAttackMetadata applyEffects(NBTItem item, LivingEntity target) {
|
||||
if (getDamage().hasType(DamageType.WEAPON)) {
|
||||
applyOnHitEffects(target);
|
||||
if (getDamage().hasType(DamageType.WEAPON))
|
||||
applyElementalEffects(item, target);
|
||||
applyOnHitEffects(target);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user