mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 17:23:07 +00:00
Fix Counter Damage for DBC / CNPC+
This commit is contained in:
1 parent
eacb3f8c5f
commit
b406382564
3 files changed
+64
-38
No files matched your search
@@ -37,6 +37,15 @@ public class DBCAddon {
|
||||
public void doDBCDamage(EntityNPCInterface npc, float attackStrength, Entity receiver) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the pre-calculated DBC attack damage of the current attacker,
|
||||
* or the vanilla damage if DBC damage was not calculated.
|
||||
* Used by Counter (PERCENT mode) to base counter damage on the full DBC attack, not vanilla base.
|
||||
*/
|
||||
public float getAttackerDBCDamage(float vanillaDamage) {
|
||||
return vanillaDamage;
|
||||
}
|
||||
|
||||
public boolean isKO(EntityNPCInterface npc, EntityPlayer player) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user