Add Worldguard Flags to conditions
Summary
A regionflag condition would use worldguard flags as conditions directly, rather than needing to make long-winded and messy server-specific skills when it comes to side-effects of AOE skills.
Usage
Normally, a complex skill would have some side effects, via potion effects or otherwise. Having an ability to prevent those side effects as damage already is done would be stellar.
Value
Currently, to prevent effects from super fancy skills from hitting pvp-deny region players (lets say a boss region where there are raids and a lot of AOE abilities popping off) you would have to make an array of regions the skill doesn't work. Which works, but is horrendously messy. Damage is already handled well in this manner, and side effects are def not.
The main skill (already a mouthful of code, and probably a bit messy as is but that's my fault): https://pastebin.com/WNg75A7W
the Metaskill needed currently to prevent potion effects from killing players in non pvp zones:
demonrot:
Conditions:
- region{r=clubemerald,demonrealm,dragon,blackjack,casinofloor,casinohall,switch,bigbrainstage,catacombs,leet,mondstadt,stage} false
Skills:
- potion{type=SLOW;duration=120;lvl=4}
- potion{type=WEAKNESS;duration=120;lvl=8}
- potion{type=WITHER;duration=120;lvl=2}
Priority
Medium-Priority, not game-breaking but makes a huge difference to those who could use it and save some headaches for skill-makers.
Implementation
Describe how you think your suggestion should be implemented.
The ideal concept would be:
- skill{s=demonrot} @EntitiesInRadius{r=10;ignore=armorstands,villagers}
demonrot:
Conditions:
- regionflag{f=pvp-deny} false
Skills:
- potion{type=SLOW;duration=120;lvl=4}
- potion{type=WEAKNESS;duration=120;lvl=8}
- potion{type=WITHER;duration=120;lvl=2}