Closed slyleight closed 1 month ago
We just check if the damage event is cancelled for these entities. If some plugin doesn't cancel the event or does that too late, there is not much we can do there. I will however try to investigate. Are you able to provide some effects which work okay with damageable/undamageable
I don't think it is event specific, I checked every effect with aoe. Only if we set the target to mobs, it actually works on mobs (but mobs inside the protected area can get affected when the conditions are right. More on that below..
So all of it is bugged...
(I checked every enchantment we have and yeah, it fails to check for some reason.)
(Target=damageable)
(Target=mobs) (This one is a problematic one if you set the conditions right, ex. placing a villager 1 block next to where your claim ends and if another player attacks an entity outside your claim, your villager in claim can get damaged too if it is in aoe radius.)
Electrocution (Big problem if Boss mob deals 300 raw damage with special attack and it might kill players in a PVP disabled area)
'4':
chance: 6
cooldown: 10
conditions:
- '%souls on item% < 20 : %stop%'
effects:
- REMOVE_SOULS:20 @Self
- DECREASE_DAMAGE:20
- PARTICLE:ELECTRIC_SPARK:70:2 @Aoe{radius=3,target=DAMAGEABLE,limit=4}
- DO_HARM:<math>%raw damage% * 0.05</math> @Aoe{radius=3,target=DAMAGEABLE,limit=4}
Here is horrify
'5':
chance: 5
cooldown: 120
effects:
- POTION:CONFUSION:23:40 @Aoe{r=32,t=damageable}
- POTION:SLOW:23:40 @Aoe{r=32,t=damageable}
- POTION:SLOW_DIGGING:23:40 @Aoe{r=32,t=damageable}
- MESSAGE:§4§l** HORRIFY ** @Aoe{r=32,t=damageable}
I would like to point out while I was in godmode or gamemode creative, I also got the effect from Horrify too. In theory it shouldn't effect me right? I'm in godmode or gamemode creative. But some reason I also got the effect.
This was not a big deal until I used @Aoe in both for mobs and players at the same time. As I said before, while in dungeon, PVP is disabled in Worldguard Flags, but when I attack the dungeon mobs, players are also got targeted.
I believe there is nothing I can do other than remove these enchants since they cause unintended effects on players who are not in PVP.
Will be fixed in the next update
Describe the bug
I changed the Deranged enchantment to make it strike real lightning with
- LIGHTNING:true
, but when I uploaded it to our main server, I realized that the- LIGHTNING:true **@Aoe{radius=5,target=damageable}**
target does not check the damageable property at all.I noticed this issue after adding damage effects to AOE targets. This caused players in claims or WorldGuard regions with PvP disabled to still take damage.
Deranged
Shockwave Plus
Cleave
PS: Is it possible to add a target that only targets players, similar to mobs but with separate damageable settings?
How to reproduce
In our mob arena, where PvP is protected, players using the Deranged enchantment on mobs also target other players with AOE damage, despite the PvP protection in the wg region.
In survival server even players within PvP-protected claims (using the common claim plugin) take damage if they are within the AOE radius.
Additionally, I found that the Teams plugin conflicts with this. If a player is in a team, they are immune to AOE effects, regardless of whether they are allies or not. However, once removed from the team, they start taking damage, even in protected areas.
Screenshots / Videos
https://streamable.com/yjy8f5
"/ae plinfo" link
https://paste.md-5.net/qahefuyeni
Server Log
No response