Attribute and Magic Damage Calculations for Players to MOBS, Players, NPCs

This commit is contained in:
Kam committed 2025-03-06 04:07:16 -05:00
1 parent f1a606e183
commit e3fad91547
3 files changed
+219 -119

No files matched your search

@@ -499,7 +499,7 @@ public class ScriptPlayerEventHandler {
// Player to Player Interaction
if(ConfigMain.AttributesEnabled){
if(event.entityLiving instanceof EntityPlayer && source instanceof EntityPlayer){
event.ammount = AttributeAttackUtil.calculateDamagePlayer((EntityPlayer) event.entityLiving, (EntityPlayer) source, event.ammount);
event.ammount = AttributeAttackUtil.calculateDamagePlayerToPlayer((EntityPlayer) event.entityLiving, (EntityPlayer) source, event.ammount);
} else if (!(event.entityLiving instanceof EntityNPCInterface) && source instanceof EntityPlayer){
event.ammount = AttributeAttackUtil.calculateOutgoing((EntityPlayer) source, event.ammount);
}