mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 22:27:32 +00:00
Check KO
This commit is contained in:
1 parent
0c48bac2ef
commit
83a07d8b1d
4 files changed
+20
-6
No files matched your search
@@ -627,6 +627,8 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
public void setAttackTarget(EntityLivingBase entity){
|
||||
if(entity instanceof EntityPlayer && ((EntityPlayer)entity).capabilities.disableDamage || entity != null && entity == getOwner())
|
||||
return;
|
||||
if(entity instanceof EntityPlayer && DBCAddon.instance.isKO(this, (EntityPlayer) entity))
|
||||
return;
|
||||
if (!isRemote()) {
|
||||
if (getAttackTarget() != entity && entity != null) {
|
||||
NpcEvent.TargetEvent event = new NpcEvent.TargetEvent(wrappedNPC,entity);
|
||||
|
||||
Reference in new issue
Block a user