Commit Graph
21684 Commits
Author SHA1 Message Date
treeston 6045d3f33d d3214a0 follow-up for code style. 2016-09-22 03:10:28 +02:00
treeston 6b83a23408 Movement/SplineChain: Streamline the script workflow for resume info a bit, provide static method that does all the ugly pointer casts for you. Also prevent a nullptr dereference crash if scripts mishandle motionmaster, and canonize Chain == nullptr to signify "no resume info". 2016-09-22 03:10:17 +02:00
treeston 3d82e5771d Map/InstanceMap: Ease up on a somewhat overzealous error message regarding instance saves. 2016-09-22 03:10:06 +02:00
treeston 7eb89d3648 Core/Movement: Fix a DB spline chain overload I missed in 2170541 2016-09-21 05:26:27 +02:00
Treeston 3815b5bc06 Code style follow-up, I blame Notepad++. 2016-09-20 20:33:01 +02:00
treeston 8a402b9f6b Core/Unit: Standardize SetFacingTo and SetFacingToObject behavior while moving. Both now fail while moving unless arg2 bool is true 2016-09-20 20:28:45 +02:00
treeston bd109edce8 5952752 follow-up: Member declaration now matches order of usage. 2016-09-20 18:38:42 +02:00
treeston bd9dbabcc0 Instance/Naxxramas: Loatheb no longer instantly murders you. Five spam casts of Doom tend to do that to raids. 2016-09-20 18:37:58 +02:00
treeston 7e55e193e5 PCH build fix. Again.
(( Alright, you made me waste 20 minutes of my life on a full nonPCH rebuild of the core now. ))
(( I hope you're happy. ))
2016-09-20 18:37:20 +02:00
treeston bf61a58cc2 Core/Movement: Add a convenience default ctor to SplineChainResumeInfo, and fix PCH build in some configurations (zzz why do we even keep Appveyor and Travis around). 2016-09-20 12:55:26 +02:00
treeston c1cc7e0a36 Core/Movement: Add new SplineChainMovementGenerator that allows accurate replication of sniffed waypoints in static sequences, along with DB facilities that allow loading of waypoints from DB. 2016-09-20 12:54:54 +02:00
tkrokli 6953e06c4b Core/Scripts: simplified npc_pet_trainer gossip script
This is what the script changes should have been in PR #17746
(also updates issue #14719 with a correct solution).

- remove OnGossipHello() to use DB conditions
- replace OnGossipSelect() with sGossipSelect()
- focus script on the confirming gossip option
- let the other gossip menus be handled in DB
2016-09-18 07:38:25 +02:00
Treeston 226762216a Map/Instances: Greatly simplify PermBindAllPlayers logic. (#17940) 2016-09-18 07:38:06 +02:00
Naios 803ec1d5ab Core/Scripts: Fix a crash when swapping creatures with pending vehicle join events.
* Closes #17833
2016-09-15 17:08:45 +02:00
Naios dcea4223dd Core/Scripts: Fix a crash when adding/removing objects from the map while swapping
* Ref #17833
2016-09-15 17:08:30 +02:00
Aokromes a952526efe Core/Achievement: do not consider overkill damage for ACHIEVEMENT_CRI…
…TERIA_TYPE_DAMAGE_DONE.
2016-09-15 17:07:42 +02:00
SnapperRy d4687de575 Core/Creature: enable pet bar for TempSummons with category SUMMON_CATEGORY_PET.
Thanks @ariel- for helping with the research (although I'm two months late).
2016-09-15 17:01:19 +02:00
SnapperRy 96f4cb4799 Core/SmartAI: do not target player's group for SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS.
SMART_TARGET_INVOKER_PARTY or SMART_ACTION_CALL_GROUPEVENTHAPPENS should instead be used to achieve this functionality.
2016-09-14 21:03:44 +02:00
Aokromes 9182a19aa5 Core/Fishing: implement retail-like fishing skill-up functionality 2016-09-14 15:13:04 +02:00
treeston e5bb91c364 Maps/Boundary: Some code style clean-up in AreaBoundary code, as well as adding an additional utility overload to IsWithinBoundary (Position const&). 2016-09-14 14:34:28 +02:00
treeston 1fb05a1797 Common/Utilities: More std::chrono overloads for EventMap. Specifying 2 std::chrono types now gives you a random (to milliseconds) time in that interval (inclusive) for (Re)ScheduleEvent. 2016-09-14 14:34:10 +02:00
ariel- dcb823bc4a Core/Spell: Updated SpellInfo::GetMaxTicks with all effects capable of periodics 2016-09-14 14:33:12 +02:00
SnapperRy aeae738b37 Core/Fishing: ignore required skill when fishing in pools. 2016-09-14 14:32:50 +02:00
ariel- 9cf523634d Core/Spell: do not cast interrupt effect if the spell did not hit 2016-09-14 14:32:16 +02:00
treeston 72a76d6226 Instance/UtgardePinnacle: Fix Svala Sorrowgrave timings (from sniff). 2016-09-14 14:32:03 +02:00
Aokromes 549d2add69 Core/Opcodes: Coding standards 2016-09-13 04:45:12 +02:00
Aokromes ae8f32024a Core/Opcodes: Enable 2 opcodes updates #56 2016-09-13 04:26:59 +02:00
treeston 876757ed68 Core/Movement: Fix an edge case crash in HomeMovementGenerator. 2016-09-11 16:50:12 +02:00
treeston a030e5cfff Woops. Thanks, clang.
Crash fix.
2016-09-10 14:52:48 +02:00
treeston 74c4c208c9 Entities/Object: Add some Position const& overloads to distance/angle methods for usability. 2016-09-10 14:27:00 +02:00
SnapperRy 9b89458cc8 Script/Quest: fix and use proper serverside summon spell for quest "Red Snapper - Very Tasty!". 2016-09-10 14:26:36 +02:00
SnapperRy e9b2feba4f Script/Quest: replace wrong test spell used for quest "Red Snapper - Very Tasty!" with actual summoning.
The spell does not appear in sniffs, and the summoned NPC's spawn time was far too short to be appropriate (15 seconds).
2016-09-10 14:26:18 +02:00
Rochet2 19ed813f6b Core/Scripts: Enhance quest status hook by making it catch more status changes (#17865) 2016-09-10 14:25:57 +02:00
Aokromes dc4657218e Core/Scripts: Implement Flag of Ownership
Core/Spells: Implemented TARGET_CORPSE_SRC_AREA_ENEMY.
2016-09-10 03:53:34 +02:00
treeston 40d0fcfae6 Fine, this time I actually built it. Promise. 2016-09-09 20:00:53 +02:00
treeston 008bbdbc47 Build fix. 2016-09-09 20:00:40 +02:00
treeston 32de236865 Game/Scripting: Follow-up to b3d44d6. Fix script selection for creatures on difficulty > 0. 2016-09-09 20:00:30 +02:00
treeston bb9b7582ee Core/Maps: Add override to allow InstanceMap const* -> InstanceScript const*.
Also tighten const-ness on CanSpawn method of CreatureScript.
2016-09-09 19:59:50 +02:00
treeston cb2da345c7 Core/Conditions: New CONDITION_QUESTSTATE (47). It's the existing que…
…st conditions collapsed into a bitmask value2 because I'm a lazy person that doesn't like having long SQL queries.

Then use this new condition to fix Sniffing out the Perpetrator for Horde.
2016-09-09 19:59:17 +02:00
treeston 5bd9d82c9d Creature/Scripting: Move CreatureAI::CanRespawn to CreatureScript::CanSpawn. Now also applies to initial spawn. Dynamic spawning prep. 2016-09-09 19:57:25 +02:00
treeston 219fd84f1e Derp. Build fix. 2016-09-09 19:57:12 +02:00
treeston 2e896a15dd AI/SmartAI: Fix an issue where SmartAI creatures would not properly follow their owner on evade. Also fix a bug where creatures with INHABIT_ROOT would get stuck in evade under certain conditions.
This allows us to fix quest 12261 (No Place to Run). Closes #16291.
2016-09-09 19:56:30 +02:00
ariel- 1bb7c63cf9 Core/Entities: moved duplicated triggered cast proc check to Unit::ProcDamageAndSpellFor, it was preventing some always triggered auras from proccing. 2016-09-08 07:07:15 +02:00
ariel- 1b1e23e8bf Core/AI: updated SpellTargetSelector::operator() (#17824 follow-up) 2016-09-05 20:44:53 +02:00
Aokromes f459484e8e more compile fix 2016-09-05 01:24:44 +02:00
Aokromes 7978d15854 Build fix try 2016-09-05 01:16:11 +02:00
ariel- d21a28b5cc Core/Battlefield: container optimization 2016-09-05 00:49:59 +02:00
ariel- 582b028363 Core/Battlefield: fix Wintergrasp defender portal logic 2016-09-05 00:21:02 +02:00
Aokromes a1fdfe9259 Typo fix, fix compile 2016-09-04 15:03:40 +02:00
Aokromes 8284afd5a6 Core/Spells / Scripts: Fix Lock and Load 2016-09-04 11:47:54 +02:00