Combat/threat rewrite prep - merge RBAC/DB changes.
Port From (https://github.com/TrinityCore/TrinityCore/commit/118e53f1b84fca238a6f1039471351afa61bd6c4)
This commit is contained in:
@@ -214,7 +214,7 @@ namespace Framework.Constants
|
||||
CommandDebugGetitemstate = 306,
|
||||
CommandDebugGetitemvalue = 307, // DEPRECATED: DON'T REUSE
|
||||
CommandDebugGetvalue = 308, // DEPRECATED: DON'T REUSE
|
||||
CommandDebugHostil = 309,
|
||||
CommandDebugCombat = 309,
|
||||
CommandDebugItemexpire = 310,
|
||||
CommandDebugLootrecipient = 311,
|
||||
CommandDebugLos = 312,
|
||||
|
||||
@@ -435,8 +435,8 @@ namespace Game.Chat
|
||||
return true;
|
||||
}
|
||||
|
||||
[Command("hostil", RBACPermissions.CommandDebugHostil)]
|
||||
static bool HandleDebugHostileRefListCommand(StringArguments args, CommandHandler handler)
|
||||
[Command("combat", RBACPermissions.CommandDebugCombat)]
|
||||
static bool HandleDebugCombatListCommand(StringArguments args, CommandHandler handler)
|
||||
{
|
||||
Unit target = handler.GetSelectedUnit();
|
||||
if (!target)
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
--
|
||||
UPDATE `rbac_permissions` SET `name`="Command: debug combat" WHERE `id`=309;
|
||||
@@ -0,0 +1,10 @@
|
||||
--
|
||||
UPDATE `command` SET `name`="debug combat", `help`="Syntax: .debug combat
|
||||
|
||||
Lists the target's (or own) combat references." WHERE `name` IN ("debug hostil","debug combat");
|
||||
UPDATE `command` SET `help`="Syntax: .debug threat
|
||||
|
||||
Lists the units threatened by target (or self). If target has a threat list, lists that threat list, too." WHERE `name`="debug threat";
|
||||
|
||||
DELETE FROM `spell_script_names` WHERE `ScriptName`="spell_warr_vigilance_redirect_threat";
|
||||
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES (59665,"spell_warr_vigilance_redirect_threat");
|
||||
Reference in New Issue
Block a user