mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Fixed SCRIPT_COMMAND_TALK description, comment was matching the old behavior
This commit is contained in:
@@ -83,7 +83,7 @@ private:
|
||||
// DB scripting commands
|
||||
enum ScriptCommands
|
||||
{
|
||||
SCRIPT_COMMAND_TALK = 0, // source/target = Creature, target = any, datalong = talk type (0=say, 1=whisper, 2=yell, 3=emote text, 4=boss emote text), datalong2 & 1 = player talk (instead of creature), dataint = string_id
|
||||
SCRIPT_COMMAND_TALK = 0, // source/target = Creature, target = any, datalong = talk type (see ChatType enum), datalong2 & 1 = player talk (instead of creature), dataint = string_id
|
||||
SCRIPT_COMMAND_EMOTE = 1, // source/target = Creature, datalong = emote id, datalong2 = 0: set emote state; > 0: play emote state
|
||||
SCRIPT_COMMAND_FIELD_SET = 2, // source/target = Creature, datalong = field id, datalog2 = value
|
||||
SCRIPT_COMMAND_MOVE_TO = 3, // source/target = Creature, datalong2 = time to reach, x/y/z = destination
|
||||
|
||||
@@ -669,9 +669,9 @@ void Map::ScriptsProcess()
|
||||
break;
|
||||
}
|
||||
|
||||
Unit* uSource = NULL;
|
||||
Unit* uTarget = NULL;
|
||||
// source/target cast spell at target/source (script->datalong2: 0: s->t 1: s->s 2: t->t 3: t->s
|
||||
Unit* uSource = nullptr;
|
||||
Unit* uTarget = nullptr;
|
||||
// source/target cast spell at target/source (script->datalong2: 0: s->t 1: s->s 2: t->t 3: t->s)
|
||||
switch (step.script->CastSpell.Flags)
|
||||
{
|
||||
case SF_CASTSPELL_SOURCE_TO_TARGET: // source -> target
|
||||
|
||||
Reference in New Issue
Block a user