mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 00:47:50 +00:00
Beta 17 + Fix NPCs to Players with Magic Attributes
This commit is contained in:
1 parent
45f80c30db
commit
9700114d87
3 files changed
+3
-7
No files matched your search
@@ -204,11 +204,7 @@ public class AttributeAttackUtil {
|
||||
MagicController magicController = MagicController.getInstance();
|
||||
Set<Integer> defenderMagicIDs = new HashSet<>(defenderData.magicData.getMagics().keySet());
|
||||
applyMagicInteractions(result.allocation, defenderMagicIDs, magicController);
|
||||
|
||||
float adjustedMagic = 0f;
|
||||
for (float val : result.allocation.values())
|
||||
adjustedMagic += val;
|
||||
|
||||
float adjustedMagic = applyDefenderMagicDefense(result.allocation, defender, magicController);
|
||||
return leftover + adjustedMagic;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ import noppes.npcs.scripted.NpcAPI;
|
||||
import java.io.File;
|
||||
import java.util.Set;
|
||||
|
||||
@Mod(modid = "customnpcs", name = "CustomNPC+", version = "1.10-beta16")
|
||||
@Mod(modid = "customnpcs", name = "CustomNPC+", version = "1.10-beta17")
|
||||
public class CustomNpcs {
|
||||
|
||||
@SidedProxy(clientSide = "noppes.npcs.client.ClientProxy", serverSide = "noppes.npcs.CommonProxy")
|
||||
|
||||
Reference in new issue
Block a user