Commit Graph

19310 Commits

Author SHA1 Message Date
Gustavo
40114cacd3 Core/Scripts Boss Skadi the Ruthless rework 2016-08-25 09:13:02 +02:00
tkrokli
8df4706992 Core/Scripts: move npc_experience hardcoded text to DB 2016-08-25 09:07:45 +02:00
tkrokli
8bc00e8952 Core/Scripts: move #define to enum in boss_kalecgos.cpp 2016-08-25 09:03:41 +02:00
tkrokli
537074a809 Core/Scripts: move forge_of_souls gossip to DB 2016-08-25 08:49:09 +02:00
Gustavo
b459c6607f Core/Scripts Implement Pit of Saron Cavern event 2016-08-25 08:40:02 +02:00
Gustavo
989aaaa8b5 Scripts/Pet Implemented Argent Squire/Gruntling and Argent Pony Bridle 2016-08-25 08:31:48 +02:00
SnapperRy
0d2ef2ac71 Core/Achievements: improve mergeability between branches 2016-08-24 20:24:14 +02:00
treeston
7451164d6a Merge remote-tracking branch 'Treeston/3.3.5-movechasestate' into 3.3.5 2016-08-24 18:29:35 +02:00
treeston
2d7dec0d39 Was Travis completely napping on this one? 2016-08-24 18:25:30 +02:00
treeston
93a68d5881 ...Huh. Wonder how this one didn't make travis complain on the PR. 2016-08-24 18:22:54 +02:00
treeston
47a9cb1e56 Merge remote-tracking branch 'Treeston/3.3.5-kelthuzad' into 3.3.5 (PR #16634) 2016-08-24 18:17:50 +02:00
SnapperRy
2b48082b9d Core/Achievements: implement ACHIEVEMENT_CRITERIA_DATA_TYPE_S_ITEM_QUALITY to check if the item with entry miscvalue1 is exactly of the quality specified in achievement_criteria_data's value1 field.
Also ACHIEVEMENT_CRITERIA_DATA_TYPE_S_EQUIPED_ITEM --> ACHIEVEMENT_CRITERIA_DATA_TYPE_S_EQUIPPED_ITEM
2016-08-24 18:09:56 +02:00
ariel-
83c032c2a8 Core/SmartAI: fix warning reported by VS2015 2016-08-23 21:54:18 -03:00
treeston
5da3ae0489 Scripts/HallsOfLightning: Fix Volkhan healing. 2016-08-24 01:27:17 +02:00
tkrokli
f3dc97f263 Core/Scripts: set correct unit_flags on Scarlet Mine Car (#17844)
Closes #17816
2016-08-23 20:07:16 -03:00
SnapperRy
1fcd03b60a Core/SmartAI: allow SMART_TARGET_OWNER_OR_SUMMONER to target a temporary summon's summoner, too (#17851)
Core/SmartAI: allow SMART_TARGET_OWNER_OR_SUMMONER to target a temporary summon's summoner, too
2016-08-24 00:13:26 +02:00
SnapperRy
a6ef9d4539 Core/SmartAI: add param2 to SMART_ACTION_UPDATE_TEMPLATE, allowing to specify if creature's level should remain the same between entry updates.
A value of 0 (default) forces the creature to keep its current level between entry updates.

Fixes #16371
2016-08-23 23:46:24 +02:00
SnapperRy
fb6d4dd98f Core/Event: prevent seasonal quests from resetting at server restart (#17455)
Closes #16015.
Closes #16413.
2016-08-23 15:49:38 +02:00
SnapperRy
894378f867 Event/Brewfest: implement relay race (#17603) 2016-08-23 13:36:57 +02:00
tkrokli
8a0990376d Core/Scripts: npc_wormhole #define text moved to DB (#17805)
Another core script hardcoded text removal:
- removed #define text from script
- added the text to gossip_menu_option
- added and renamed enum to match DB entries
- minor additional adjustments and comments

Closes #6841
2016-08-23 13:30:27 +02:00
Gustavo
5661b4686b Improve scripts for quests Breakfast Of Champions and A Bear of an Appetite (#17780)
Properly despawn the related GameObjects after use of the quest item, avoiding multiple use and summon
2016-08-23 13:21:03 +02:00
SnapperRy
433beb77e3 Scripts/ArgentTournament: improve training dummy script
Now the ranged and charge target dummies will cast their spells and behave correctly for the related quests
2016-08-23 13:14:38 +02:00
Shauren
75c34bda67 Core/Creatures: Exclude despawned creatures from being found by "nearest entry" searchers
Updates #11418
Closes #17706
2016-08-22 21:10:43 +02:00
jackpoz
b7306f06f5 Core/Misc: Fix static analysis issues 2016-08-22 14:17:24 +02:00
ariel-
f183ed3c50 Core/Unit: removed ancient workaround changing spell caster based on triggering aura.
Keep an eye out for those broken scripts!

Closes #17739
2016-08-21 18:02:36 -03:00
Shauren
4d5fee0489 Dynamic linking build fix 2016-08-21 18:51:11 +02:00
Shauren
39311e0ce8 Typo fix 2016-08-21 18:40:06 +02:00
Eilo
0a53d0b1fa Tools/mmaps_generator: Added estimated percentage progress to console output (#17798) 2016-08-21 11:44:22 +02:00
mik1893
6d07fbf07c Core/Spells: Fixed spells like Shadowform, Tricks of the Trade, Misdirection getting stuck in unusable state clientside if they failed earlier because of GCD
Closes #657
Closes #12913
Closes #17376
2016-08-21 11:32:42 +02:00
treeston
2a1232ca1a Scripts/Naxxramas: Full Kel'thuzad rework.
- Sniffed timers
- Sniffed spawn behavior
- Sniffed everything else
- Sniffed sniff. Mmmm
 - In all seriousness though:
    - Fixed P2 cast behavior, now obeys category cooldowns as intended
    - Fixed P1 pathing and abomination behavior
    - Fixed P1 passive minion aggro logic
    - Fixed P1->P2 transition logic
    - Fixed P3 guardian spawn/despawn logic
    - Fixed all minions' cast behavior
    - Fixed melee hitbox for Kel'thuzad, abominations, banshees and guardians
    - Fixed reset behavior
    - Fixed post-Sapphiron event to no longer open the KT door for a few seconds before slamming it closed again
2016-08-21 11:27:18 +02:00
Treeston
6f85422f0b Core/Spells: Fix orientation- and targeting-related issues if the creature isn't currently engaged in combat. (#17120)
Also disable spell focus system for vehicle control auras.

Closes #16572
Closes #17016
2016-08-21 11:07:38 +02:00
Alan Deutscher
061b62a97d Scripts: UNIT_FLAG_REMOVE_CLIENT_CONTROL no longer used as a method for preventing a unit from moving
UNIT_FLAG_REMOVE_CLIENT_CONTROL (formerly UNIT_FLAG_DISABLE_MOVE) is a client-only feature that should not be used for NPC scripting. All applications of this flag in scripts/ have been replaced with applications/removals of the UNIT_STATE_ROOT state.

Closes #17311
2016-08-21 11:04:59 +02:00
ariel-
6d4eead3a9 Core/Entities: fix a crash that would happen whenever a player logged back in to an ended arena battle. Thanks Nawuko for the input
Closes #17825
2016-08-20 22:19:49 -03:00
ariel-
1deb7d2df1 Core/Battlefield: Cleanup of Wintergrasp script and battlefield system:
- Standards: Moved all statics to cpps where they belong.
- Changed spawn position container from fixed size array to std::vector (not all positions were used in every case)
- Removed unused parameter teamId from Battlefield::SpawnCreature
- Removed workaround for GO rotation, added in a69cbeb9d5
- Added rotation parameter to Battlefield:SpawnGameObject
- Added sniffed rotation to existing script spawns.
- Implemented Archavon's Log (Closes #16880)
2016-08-20 21:40:43 -03:00
jackpoz
eb9bf314c4 Core/Commands: Code cleanup
Remove commented out code
2016-08-20 20:53:08 +02:00
SnapperRy
0b4b0ea348 Core/SpellArea: only check against spell_area entries for the current quest when updating quest status
Closes #17804
2016-08-20 18:22:43 +02:00
Shauren
836fe5d1ed Core/Spells: Fixed possible null pointer dereference
Coverity CID 1357406

(cherry picked from commit cc07a491f6)
2016-08-20 15:51:15 +02:00
treeston
08b3833051 Core/Conditions: Add new CONDITION_TAXI (46). Does what it says on the tin. Tagging issue #15560. 2016-08-20 14:36:45 +02:00
jackpoz
f67d1158d1 Core/Battleground: Fix crash happening when reporting afk a nonexistent player 2016-08-20 14:29:09 +02:00
treeston
6ae887a5a9 Core/Movement: Properly clear UNIT_STATE_MOVING when reaching chase target. 2016-08-20 13:39:57 +02:00
treeston
78a44dd81e Core/Spells: Fix Spell::EffectJumpDest not to turn caster to zero orientation when ground targeting. 2016-08-20 13:08:09 +02:00
Treeston
8deda7ed7f Entities/Unit: Cleanup refactor. Changes: (#17819)
+ Unit::m_movedPlayer -> Unit::m_playerMovingMe
+ Player::m_mover -> Player::m_unitMovedByMe
+ Unit::GetMover() -> Unit::GetUnitBeingMoved()
+ Unit::GetPlayerMover() -> Unit::GetPlayerBeingMoved()
+ NEW: Unit::GetClientControllingPlayer()
2016-08-20 12:43:04 +02:00
treeston
d3495da30b Core/ObjectMgr: I knew I missed something. 2016-08-20 11:08:56 +02:00
treeston
768d978bd2 Core/ObjectMgr: Follow up on 628792f to remove some superfluous warnings. 2016-08-20 11:00:56 +02:00
Chaouki Dhib
333a3e05f6 Core/Spells: Fixed extended spell range while moving Closes #17818 (#17824)
Cherry pick of 10e0f4ff8f
Closes https://github.com/TrinityCore/TrinityCore/issues/17818
2016-08-20 00:25:30 +01:00
treeston
aeeae8d09c Merge remote-tracking branch 'Treeston/3.3.5-petaggro' into 3.3.5 (PR #17800) 2016-08-19 23:54:44 +02:00
treeston
ba4d6f6393 AI/SmartScripts: SMART_ACTION_ADD_QUEST -> SMART_ACTION_OFFER_QUEST. Open quest offer instead of adding straight to log - old behavior can be requested using action_param2. Closes #17735. 2016-08-19 23:01:21 +02:00
jackpoz
4073cc510a Core/Packets: Port packet handling rework from 6.x branch (#17777)
* Core/Packets: Port packet handling rework from 6.x branch

Port packet handling reword from 6.x branch. Old handlers are still used at the moment, these changes allow to port old handlers to new packet-specifc ones.
2016-08-19 22:29:00 +02:00
ariel-
628792f960 Core/ObjectMgr: added some more sanity checks to creature templates
- Extra: throwed semicolons around
- Clarified meaning for a vehicleId check (what it said didn't correspond to what was actually checked)
2016-08-19 13:54:08 -03:00
treeston
9072e0221b AI/SmartScripts: Add param3 to SMART_ACTION_CAST and SMART_ACTION_INVOKER_CAST that allows specific triggered flags to be set (rather than all-or-nothing). Ignored if SMARTCAST_TRIGGERED is not set. 2016-08-19 15:23:19 +02:00