aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiscover- <amort11@hotmail.com>2012-05-30 01:00:55 +0200
committerDiscover- <amort11@hotmail.com>2012-05-30 01:00:55 +0200
commit1b77fd45fa5f3eb34ef8c6c462bfcbe2e7d8a9a1 (patch)
tree97cba5f619decf536da283be6cb9b6e7879816c4 /src
parentfce6ec014d336aaeaf6ffae6f52b4746970ca803 (diff)
Core/SAI: Revert SMART_ACTION_SET_STAND_STATE from 013fe44b9229469e142bd152b43e80841dc9cb0e, can be done with SMART_ACTION_SET_UNIT_FIELD_BYTES_1.
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.cpp18
-rw-r--r--src/server/game/AI/SmartScripts/SmartScriptMgr.h8
2 files changed, 1 insertions, 25 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
index 9a562e3f6c4..01a9b777358 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -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;
diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.h b/src/server/game/AI/SmartScripts/SmartScriptMgr.h
index 7efc137205e..c23e288f66d 100644
--- a/src/server/game/AI/SmartScripts/SmartScriptMgr.h
+++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.h
@@ -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
@@ -896,11 +895,6 @@ struct SmartAction
struct
{
- uint32 standState;
- } setStandState;
-
- struct
- {
float distance;
float angle;
} setRangedMovement;