mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Merge pull request #7134 from acrathos/master
SmartScripts: added new parameter to actions 90 & 91
This commit is contained in:
@@ -1782,7 +1782,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
break;
|
||||
for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr)
|
||||
if (IsUnit(*itr))
|
||||
(*itr)->ToUnit()->SetByteFlag(UNIT_FIELD_BYTES_1, 0, e.action.setunitByte.byte1);
|
||||
(*itr)->ToUnit()->SetByteFlag(UNIT_FIELD_BYTES_1, e.action.setunitByte.type, e.action.setunitByte.byte1);
|
||||
|
||||
delete targets;
|
||||
break;
|
||||
@@ -1795,7 +1795,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
|
||||
for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr)
|
||||
if (IsUnit(*itr))
|
||||
(*itr)->ToUnit()->RemoveByteFlag(UNIT_FIELD_BYTES_1, 0, e.action.delunitByte.byte1);
|
||||
(*itr)->ToUnit()->RemoveByteFlag(UNIT_FIELD_BYTES_1, e.action.delunitByte.type, e.action.delunitByte.byte1);
|
||||
|
||||
delete targets;
|
||||
break;
|
||||
|
||||
@@ -827,11 +827,13 @@ struct SmartAction
|
||||
struct
|
||||
{
|
||||
uint32 byte1;
|
||||
uint32 type;
|
||||
} setunitByte;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 byte1;
|
||||
uint32 type;
|
||||
} delunitByte;
|
||||
|
||||
struct
|
||||
|
||||
Reference in New Issue
Block a user