TrinityCore/TrinityCore — comment on commit 784d58c02370ca69764c54a1fdf438ca59e4917a
File:  line 0
By LiMCrosS:

I created two conditions for Wintergrasp, i don't know if you are interested

```CONDITION_WORLDSTATE = 39, // index value 0 true if has the value for the index
```CONDITION_PHASEMASK = 40, // phasemask 0 0 true if have the phasemask

``` case CONDITION_WORLDSTATE:
``` {
``` condMeets = mConditionValue2 == sWorld->getWorldState(mConditionValue1);
``` break;
``` }
``` case CONDITION_PHASEMASK:
``` {
if (Player* player = object->ToPlayer())
``` condMeets = mConditionValue2 == 1 ? (player->GetPhaseMask() & mConditionValue1) : !(player->GetPhaseMask() & mConditionValue1);
``` break;
``` }