{"action":"created","issue":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/16997","repository_url":"https://api.github.com/repos/TrinityCore/TrinityCore","labels_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/16997/labels{/name}","comments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/16997/comments","events_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/16997/events","html_url":"https://github.com/TrinityCore/TrinityCore/issues/16997","id":148962769,"number":16997,"title":"[6.x] Core/SAI: need new flags for difficulty entry and mask.","user":{"login":"Ulduar","id":18075953,"avatar_url":"https://avatars.githubusercontent.com/u/18075953?v=3","gravatar_id":"","url":"https://api.github.com/users/Ulduar","html_url":"https://github.com/Ulduar","followers_url":"https://api.github.com/users/Ulduar/followers","following_url":"https://api.github.com/users/Ulduar/following{/other_user}","gists_url":"https://api.github.com/users/Ulduar/gists{/gist_id}","starred_url":"https://api.github.com/users/Ulduar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ulduar/subscriptions","organizations_url":"https://api.github.com/users/Ulduar/orgs","repos_url":"https://api.github.com/users/Ulduar/repos","events_url":"https://api.github.com/users/Ulduar/events{/privacy}","received_events_url":"https://api.github.com/users/Ulduar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Branch-6.x","name":"Branch-6.x","color":"188846"},{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Comp-Core","name":"Comp-Core","color":"FF6600"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-17T15:14:28Z","updated_at":"2016-05-09T16:33:54Z","closed_at":null,"body":"**Description**:\r\nNew difficulty flags and mask.\r\n**Current behaviour**: Tell us what happens\r\nWe have in core:\r\n``` CPP\r\nenum SmartEventFlags\r\n{\r\n    SMART_EVENT_FLAG_NOT_REPEATABLE        = 0x001,                     //Event can not repeat\r\n    SMART_EVENT_FLAG_DIFFICULTY_0          = 0x002,                     //Event only occurs in instance difficulty 0\r\n    SMART_EVENT_FLAG_DIFFICULTY_1          = 0x004,                     //Event only occurs in instance difficulty 1\r\n    SMART_EVENT_FLAG_DIFFICULTY_2          = 0x008,                     //Event only occurs in instance difficulty 2\r\n    SMART_EVENT_FLAG_DIFFICULTY_3          = 0x010,                     //Event only occurs in instance difficulty 3\r\n    SMART_EVENT_FLAG_RESERVED_5            = 0x020,\r\n    SMART_EVENT_FLAG_RESERVED_6            = 0x040,\r\n    SMART_EVENT_FLAG_DEBUG_ONLY            = 0x080,                     //Event only occurs in debug build\r\n    SMART_EVENT_FLAG_DONT_RESET            = 0x100,                     //Event will not reset in SmartScript::OnReset()\r\n\r\n    SMART_EVENT_FLAG_DIFFICULTY_ALL        = (SMART_EVENT_FLAG_DIFFICULTY_0|SMART_EVENT_FLAG_DIFFICULTY_1|SMART_EVENT_FLAG_DIFFICULTY_2|SMART_EVENT_FLAG_DIFFICULTY_3),\r\n    SMART_EVENT_FLAGS_ALL                  = (SMART_EVENT_FLAG_NOT_REPEATABLE|SMART_EVENT_FLAG_DIFFICULTY_ALL|SMART_EVENT_FLAG_RESERVED_5|SMART_EVENT_FLAG_RESERVED_6|SMART_EVENT_FLAG_DEBUG_ONLY|SMART_EVENT_FLAG_DONT_RESET)\r\n};\r\n```\r\n\r\n**Expected behaviour**: Tell us what should happen instead\r\nIn WoD we have new flags.\r\n``` CPP\r\nenum Difficulty : uint8\r\n{\r\n    DIFFICULTY_NONE           = 0,                                // any not instance map. Nagrand example.\r\n    DIFFICULTY_NORMAL         = 1,                            // any dungeon normal map.\r\n    DIFFICULTY_HEROIC         = 2,                             // any dungeon heroic map.\r\n    DIFFICULTY_10_N           = 3,                                // Start from Naxxaramas and and ending with the Throne of Thunder\r\n    DIFFICULTY_25_N           = 4,                               // See DIFFICULTY_10_N\r\n    DIFFICULTY_10_HC          = 5,                             // See DIFFICULTY_10_N\r\n    DIFFICULTY_25_HC          = 6,                             // See DIFFICULTY_10_N\r\n    DIFFICULTY_LFR            = 7,                               // Not have explain. Maybe Start from Dragon Soul and ending with the Hellfire Citadel?\r\n    DIFFICULTY_CHALLENGE      = 8,                      // MoP and WoD dungeon.\r\n    DIFFICULTY_40             = 9,                               // Blizzard Molten Core, Temple of An'Qiraj, Blackwing Lair. Or maybe only Blizzard Molten Core update on timer.\r\n    DIFFICULTY_HC_SCENARIO    = 11,                 // MoP Scenario heroic\r\n    DIFFICULTY_N_SCENARIO     = 12,                  // MoP Scenario normal.\r\n    DIFFICULTY_NORMAL_RAID    = 14,               // flex 10-30 people, start from Siege of Orgrimmar and ending Hellfire Citadel. \r\n    DIFFICULTY_HEROIC_RAID    = 15,                // flex 10-30 people, start from Siege of Orgrimmar and ending Hellfire Citadel. \r\n    DIFFICULTY_MYTHIC_RAID    = 16,                // flex 10-30 people, start from Siege of Orgrimmar and ending Hellfire Citadel. \r\n    DIFFICULTY_LFR_NEW        = 17,                  // Maybe MoP LFR raids for 100 lvl for solo?\r\n    DIFFICULTY_EVENT_RAID     = 18,               // Molten Core?\r\n    DIFFICULTY_EVENT_DUNGEON  = 19,        // Quest dungeon? Call Exarch (Yrel example garrison quest)\r\n    DIFFICULTY_EVENT_SCENARIO = 20,        // Quest scenario phasing?\r\n    DIFFICULTY_MYTHIC         = 23,                 // 5-man WoD dungeon from 6.2.0\r\n    DIFFICULTY_TIMEWALKER     = 24,           // 5-man dungeon from 6.2.0\r\n\r\n    MAX_DIFFICULTY\r\n};\r\n\r\nenum DifficultyFlags\r\n{\r\n    DIFFICULTY_FLAG_HEROIC          = 0x01,\r\n    DIFFICULTY_FLAG_DEFAULT         = 0x02,\r\n    DIFFICULTY_FLAG_CAN_SELECT      = 0x04, // Player can select this difficulty in dropdown menu\r\n    DIFFICULTY_FLAG_CHALLENGE_MODE  = 0x08,\r\n\r\n    DIFFICULTY_FLAG_LEGACY          = 0x20,\r\n    DIFFICULTY_FLAG_DISPLAY_HEROIC  = 0x40, // Controls icon displayed on minimap when inside the instance\r\n    DIFFICULTY_FLAG_DISPLAY_MYTHIC  = 0x80  // Controls icon displayed on minimap when inside the instance\r\n};\r\n```\r\n**Steps to reproduce the problem**:\r\n\r\n1. Execute SAI (example https://github.com/TrinityCore/TrinityCore/issues/16229#issuecomment-170527483)\r\n2. Enter in SOO mythic mode.\r\n3. No actions from npc side.\r\n\r\n**Branch(es)**: 335/6x  \r\n6.x only\r\n**TC hash/commit**:  \r\nhttps://github.com/TrinityCore/TrinityCore/commit/25e1ecb33de8bfaea7fa7fa8c7f3da3074ea89e0\r\n**TDB version**:  \r\n6.04\r\n**Operating system**:  \r\n\r\n**Linking model**: static/dynamic\r\n\r\n\r\n[//]: # (This template is for problem reports, for other type of reports edit it accordingly)\r\n[//]: # (If this is a crash report, include the crashlog with https://gist.github.com/)\r\n"},"comment":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/comments/217916743","html_url":"https://github.com/TrinityCore/TrinityCore/issues/16997#issuecomment-217916743","issue_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/16997","id":217916743,"user":{"login":"Treeston","id":14020072,"avatar_url":"https://avatars.githubusercontent.com/u/14020072?v=3","gravatar_id":"","url":"https://api.github.com/users/Treeston","html_url":"https://github.com/Treeston","followers_url":"https://api.github.com/users/Treeston/followers","following_url":"https://api.github.com/users/Treeston/following{/other_user}","gists_url":"https://api.github.com/users/Treeston/gists{/gist_id}","starred_url":"https://api.github.com/users/Treeston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treeston/subscriptions","organizations_url":"https://api.github.com/users/Treeston/orgs","repos_url":"https://api.github.com/users/Treeston/repos","events_url":"https://api.github.com/users/Treeston/events{/privacy}","received_events_url":"https://api.github.com/users/Treeston/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T16:33:54Z","updated_at":"2016-05-09T16:33:54Z","body":"What's the issue with simply adding additional flags for additional difficulties?"}}