mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 01:05:12 +00:00
Change attackDelay variable to be called SwingWarmup | Better Naming
This commit is contained in:
1 parent
eb01579f4a
commit
76000ecf55
6 files changed
+23
-14
No files matched your search
@@ -133,10 +133,10 @@ public class EntityAIAttackTarget extends EntityAIBase
|
||||
{
|
||||
if (this.attackTick <= 0) {
|
||||
this.attackTick = this.npc.stats.attackSpeed;
|
||||
if(this.npc.stats.attackDelay == 0)
|
||||
if(this.npc.stats.swingWarmUp == 0)
|
||||
this.npc.attackEntityAsMob(this.entityTarget);
|
||||
this.npc.swingItem();
|
||||
} else if (this.npc.stats.attackDelay > 0 && this.attackTick == this.npc.stats.attackSpeed - this.npc.stats.attackDelay) {
|
||||
} else if (this.npc.stats.swingWarmUp > 0 && this.attackTick == this.npc.stats.attackSpeed - this.npc.stats.swingWarmUp) {
|
||||
// Perform the actual attack that deals damage
|
||||
this.npc.attackEntityAsMob(this.entityTarget);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user