Commit Graph
47 Commits
Author SHA1 Message Date
Subv2112 9b524b43fa Core/Spells: Spells with SPELL_AURA_PERIODIC_MANA_LEECH should skip unit target checking if the Targets are area targets, they are filled/validated later
Signed-off-by: Subv2112 <[email protected]>
2012-01-31 20:27:22 -05:00
Subv2112 8c87fd6841 DB/Achievements: Fixed achievement "Not So Fast".
Fix by furion
closes #4050
2012-01-31 18:18:33 -05:00
Subv2112 9361a6db2f Fixed build 2012-01-31 17:24:48 -05:00
Subv2112 faf99b833b Core/Achievements: Fixed achieements with ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_PERSONAL_RATING
closes #2021

Signed-off-by: Subv2112 <[email protected]>
2012-01-31 17:14:12 -05:00
Subv2112 2786ea1f5e Core/Quests: Fixed a crash caused when trying to add a quest to a player who does not have any free slot in his quest log. fixes #4572
Signed-off-by: Subv2112 <[email protected]>
2012-01-31 16:45:36 -05:00
Subv2112 fc9e33e4c6 Merge branch 'master' of github.com:TrinityCore/TrinityCore 2012-01-31 16:33:48 -05:00
Subv2112 229b97806a Core/Achievements: Fixed achievements with ACHIEVEMENT_CRITERIA_TYPE_WIN_RATED_ARENA requiring one extra win to complete, PersonalRating was not used here and has been removed from the call, related to issue #2021
Signed-off-by: Subv2112 <[email protected]>
2012-01-31 16:33:21 -05:00
Subv2112 bdae78ac9d Core/LFD: Fixed possible multithreading crash, thanks LihO 2012-01-31 14:38:14 -05:00
Subv2112 1bc370aaf8 Core/Achievements: Fixed achievements with ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM, they were not accumulating the amount 2012-01-31 10:01:29 -05:00
Subv2112 29f8e4309e Core/Conditions: Allow using guid (negative value) in SAI conditions 2012-01-31 09:50:02 -05:00
Subv2112 f525087538 Core/Movement: Correctly fixed flying npcs falling to ground, no more glitches with this
Signed-off-by: Subv2112 <[email protected]>
2012-01-29 15:28:19 -05:00
Subv2112 89297933d9 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2012-01-29 13:50:12 -05:00
Subv2112 9de9f2883e SQL/Conditions: Added SQL update from previous commit 2012-01-29 13:49:50 -05:00
Subv2112 74b64150bb Core/Conditions: Implemented SAI conditions, only usable with events in which the invoker is a player.
sourceType = 22
sourceEntry = entryorguid
sourceGroup = eventId + 1
sourceId = SAI sourceType (0 = creature, 1 = gameobject, etc)

Also refactored some code

Signed-off-by: Subv2112 <[email protected]>
2012-01-29 13:49:19 -05:00
Subv2112 03953930f9 Scripts/Commands: Adjust .pinfo and .gm list to respect the realmid in account_access table.
closes #1306

Signed-off-by: Subv2112 <[email protected]>
2012-01-28 16:03:36 -05:00
Subv2112 7d0ec97910 SQL/Conditions: Updated conditions with CONDITION_RACE and CONDITION_CLASS.
Malcrom's sql
2012-01-28 12:56:32 -05:00
Subv2112 59f378ea89 Core/Conditions: Fixed the error introduced in the previous commit 2012-01-28 12:45:27 -05:00
Subv2112 ff81a2455b Core/Conditions: Make CONDITION_CLASS and CONDITION_RACE use a mask, this will reduce the amount of conditions needed
Signed-off-by: Subv <[email protected]>
2012-01-28 12:25:44 -05:00
Subv2112 e43b1cd750 Core/SAI: Run mode should not be set to true each time a creature resets, it should use its previous value
Signed-off-by: Subv2112 <[email protected]>
2012-01-27 08:34:36 -05:00
Subv2112 3d4f55723c Core/SAI: Linked events should be executed after the event that linked them is executed.
Core/SAI: Allow SMART_EVENT_GO_STATE_CHANGED to use ActionInvoker target

Signed-off-by: Subv2112 <[email protected]>
2012-01-22 20:36:01 -05:00
Subv2112 c24248fabd Core/SAI: Allow SMART_ACTION_SEND_TARGET_TO_TARGET to target multiple targets at once, thanks Shauren 2012-01-22 10:46:32 -05:00
Subv2112 8e8be7e358 Core/SAI: CAST_AI will return NULL if the cast was not successful, no need to check for AIName, thanks Shauren 2012-01-22 10:42:13 -05:00
Subv2112 f4778a6b72 Core/SAI: Add the new action_types to the IsEventValid case check 2012-01-22 10:02:31 -05:00
Subv2112 8362e21b2a Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2012-01-22 08:04:39 -05:00
Subv2112 a3f595ee10 Core/SAI: Implemented SMART_ACTION_SEND_TARGET_TO_TARGET, it can be used to send targets previously stored with SMART_ACTION_STORE_TARGET, to another npc, the other npc can then access them as if it was its own stored list
Signed-off-by: Subv2112 <[email protected]>
2012-01-22 07:54:32 -05:00
Subv2112 07b1101a63 Core/SAI: Run mode should be disabled by default in creatures with SAI
Signed-off-by: Subv2112 <[email protected]>
2012-01-21 18:54:05 -05:00
Subv2112 f7276a95de Scripts/Achievements: Fixed achievement Shocking! on 10-man and 25-man
closes #4751

Signed-off-by: Subv2112 <[email protected]>
2012-01-09 20:36:56 -05:00
Subv2112 d02c781241 Core/Gossips: Fixed questgiver GOs that also have gossip menus, fixed gossip option selecting on GOs
Signed-off-by: Subv2112 <[email protected]>
2012-01-09 09:29:45 -05:00
Subv2112 7101e9626c Scripts/Commands: Fixed an error with account set gmlevel, the gmRealmID can be signed
Signed-off-by: Subv2112 <[email protected]>
2012-01-09 09:28:27 -05:00
Subv2112 5584354444 Core/Players: Fix crash in LoadFromDB
Closes #4724
Closes #4673
2012-01-08 18:37:16 +00:00
Subv2112 ddb4f0ce5b Core/Build: Fixed compile 2012-01-07 13:20:59 -05:00
Subv2112 3c4678085c Core/SAI: Removed unused variable: mResumeActionList
Signed-off-by: Subv2112 <[email protected]>
2012-01-06 22:31:38 -05:00
Subv2112 a40839fd7b Core/SAI: Changed SMART_ACTION_CALL_TIMED_ACTIONLIST params, now it has only 2, id and timerType
Signed-off-by: Subv2112 <[email protected]>
2012-01-06 22:29:26 -05:00
Subv2112 15d8763478 Core/SAI: Fixed the crash with using SMART_ACTION_ATTACK_START inside a TimedActionList, closes #4650
Signed-off-by: Subv2112 <[email protected]>
2012-01-06 22:24:11 -05:00
Subv2112 7f977c28b6 Core/SAI: Fixed the behaviour of SmartAI::RemoveAuras, it should only remove the auras that are applied on the unit by casters other than the unit
Signed-off-by: Subv2112 <[email protected]>
2012-01-06 20:50:05 -05:00
Subv2112 aaa255b83d Core/SAI: Implemented SMART_EVENT_GO_STATE_CHANGED and SMART_ACTION_GO_SET_LOOT_STATE
Signed-off-by: Subv2112 <[email protected]>
2012-01-06 11:09:01 -05:00
Subv2112 d3b1c51b6e Core/Gossips: Fixed gossip menu displaying for gameobjects with type GAMEOBJECT_TYPE_QUESTGIVER, closes #4488
Signed-off-by: Subv2112 <[email protected]>
2012-01-05 21:41:17 -05:00
Subv2112 235b941964 Fixed a typo
Signed-off-by: Subv2112 <[email protected]>
2012-01-05 19:46:46 -05:00
Subv2112 d889edb436 Core/SAI: Self-casted auras should not be removed when the NPC resets
Signed-off-by: Subv2112 <[email protected]>
2012-01-05 15:09:55 -05:00
Subv2112 8197c37a92 Vehicles with SAI should not kick their passengers when resetting
Signed-off-by: Subv2112 <[email protected]>
2012-01-05 12:11:58 -05:00
Subv2112 7b094faa85 Core/SAI: SMART_ACTION_MOVE_TO_POS should not overwrite the effects of SMART_ACTION_SET_RUN
Signed-off-by: Subv2112 <[email protected]>
2012-01-03 16:13:34 -05:00
Subv2112 bbfb21022f Fixed compile, thanks Lopin for pointing out 2011-12-28 07:10:59 -05:00
Subv2112 d7266c3cae Core/SAI: Added also SMART_TARGET_OWNER_OR_SUMMONER to SMART_ACTION_MOVE_TO_POS.
Codestyle

Signed-off-by: Subv2112 <[email protected]>
2011-12-27 20:37:42 -05:00
Subv2112 bbce35687d Merge branch 'master' of https://github.com/TrinityCore/TrinityCore into fix002 2011-12-27 20:31:55 -05:00
Subv2112 645a10d76f Core/SAI: Added support for SMART_TARGET_CREATURE_RANGE, SMART_TARGET_CREATURE_GUID, SMART_TARGET_CREATURE_DISTANCE, SMART_TARGET_GAMEOBJECT_RANGE, SMART_TARGET_GAMEOBJECT_GUID, SMART_TARGET_GAMEOBJECT_DISTANCE, SMART_TARGET_CLOSEST_CREATURE and SMART_TARGET_CLOSEST_GAMEOBJECT in SMART_ACTION_MOVE_TO_POS
Signed-off-by: Subv2112 <[email protected]>
2011-12-27 20:25:50 -05:00
Subv2112 c145c67331 Core/SAI: Enabled SMART_TARGET_STORED
Signed-off-by: Subv2112 <[email protected]>
2011-12-27 20:23:55 -05:00
Subv2112 83d5924715 Speedup loading in LoadCreatureFormations
Signed-off-by: Subv2112 <[email protected]>
2011-12-26 22:03:40 -05:00