mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-27 20:12:58 +00:00
Condition Registry [1/2]
This commit is contained in:
1 parent
8648e019a9
commit
606bc093df
4 files changed
+232
-48
No files matched your search
@@ -18,6 +18,12 @@ public class ConditionHitCount extends AbilityCondition {
|
||||
this.userType = UserType.NPC_ONLY;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean checkEntity(EntityLivingBase entity) {
|
||||
// Not used — this condition overrides check() directly
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean check(EntityLivingBase caster, EntityLivingBase target) {
|
||||
if (caster instanceof EntityNPCInterface) {
|
||||
|
||||
Reference in new issue
Block a user