Core/SAI: Revert SMART_ACTION_SET_STAND_STATE from 013fe44b92, can be done with SMART_ACTION_SET_UNIT_FIELD_BYTES_1.

This commit is contained in:
Discover-
2012-05-30 01:00:55 +02:00
parent fce6ec014d
commit 1b77fd45fa
2 changed files with 1 additions and 25 deletions

View File

@@ -1945,24 +1945,6 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
delete targets;
break;
}
case SMART_ACTION_SET_STAND_STATE:
{
ObjectList* targets = GetTargets(e, unit);
if (!targets)
break;
for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr)
{
if (IsUnit(*itr))
{
(*itr)->ToUnit()->SetStandState(e.action.setStandState.standState);
sLog->outDebug(LOG_FILTER_DATABASE_AI, "SmartScript::ProcessAction:: SMART_ACTION_SET_EMOTE_STATE. Unit %u set standstate to %u", (*itr)->GetGUIDLow(), e.action.emote.emote);
}
}
delete targets;
break;
}
default:
sLog->outErrorDb("SmartScript::ProcessAction: Entry %d SourceType %u, Event %u, Unhandled Action type %u", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType());
break;

View File

@@ -473,9 +473,8 @@ enum SMART_ACTION
SMART_ACTION_SEND_GOSSIP_MENU = 98, // menuId, optionId
SMART_ACTION_GO_SET_LOOT_STATE = 99, // state
SMART_ACTION_SEND_TARGET_TO_TARGET = 100, // id
SMART_ACTION_SET_STAND_STATE = 101, // standState
SMART_ACTION_END = 102,
SMART_ACTION_END = 101,
};
struct SmartAction
@@ -894,11 +893,6 @@ struct SmartAction
uint32 id;
} sendTargetToTarget;
struct
{
uint32 standState;
} setStandState;
struct
{
float distance;