Commit Graph

31072 Commits

Author SHA1 Message Date
Shauren
39356deeb9 Core/Vmaps: Fixed getting map height near large gameobjects like LK platform
Updates #19865
2017-06-09 13:29:41 +02:00
Aokromes
572021e0b3 Core/Maps: Corrected GetWaterOrGroundLevel
* When a gameobject was above water like in ToC. It would return water level
2017-06-09 13:29:18 +02:00
jackpoz
2102bd28a3 Core/Scripts: Simplify code
Partially revert 753e7074d8 and 12c680f9b1 to simplify the code and to only remove GMs from the target list.
2017-06-09 13:25:59 +02:00
Aokromes
be80e08ac6 Core/Misc: Fix typo in UNDERWARER_INDARKWATER 2017-06-09 13:25:35 +02:00
ariel-
307cc1e36f Core/Scripts: filter out corpses from Sindragosa's Fury targetlist
- This would incur in a crash after attempting to convert the Corpse object into Player

Closes #19227
Closes #19862
2017-06-09 13:22:40 +02:00
treeston
4b073c7354 Fixed a potential crash when resuming a SplineChainMovementGenerator. 2017-06-09 13:22:32 +02:00
Killyana
e9a454516f DB/Gossip: Gorbold Steelhand
Correct the correct text before Cataclysme
3.3.5 only
2017-06-09 13:22:24 +02:00
Aokromes
f8d9d954d1 Get zone/area IDs from vmap data in the liquid update
* Add new method Map::getFullVMapDataForPosition to get area info and liquid info in a single vmap lookup
* Use this lookup in Map:: relocation methods to update m_areaId and m_zoneId fields on WorldObject
* Adjust GetZoneId/GetAreaId on WorldObject to always return these cached fields
* Clean up liquid state handling on Unit and Player
* Hand floor's Z coord up through GetFullTerrainStatusForPosition, use it to update a new field in WorldObject, and use that to feed a new GetFloorZ call on WorldObject.
2017-06-09 13:20:37 +02:00
Aokromes
c700779949 Fix minimum requirements on readme. 2017-06-08 09:44:09 +02:00
Aokromes
ac3dbcb880 Core/Utilities: Rename RandomResizeList->RandomResize as it is no longer restricted to a list 2017-06-07 09:53:04 +02:00
Shauren
38d1fc9ab3 Core/Utils: Changed all Trinity::Containers utilities to work on all container types (including arrays where it makes sense)
* Added MapGetValuePtr to allow writing `if (Val* v = MapGetValuePtr(map, key))`
* Added utility IteratorPair class with begin/end methods and MapEqualRange for use in range for syntax with multimaps

(cherry picked from commit a1e3b54e07)
2017-06-07 09:14:37 +02:00
Aokromes
0bb27ecd4b Pet/Guardian AI hook re-organizing (#19824)
* Pet/Guardian AI hook re-organizing:
- Adjust OwnerAttacked/OwnerAttackedBy hooks on CreatureAI to fire for all owned units, not just player pets. This should allow guardians to more reliably recognize valid targets.
- Kill off the AttackedBy hook. While it was defined in CreatureAI.h as virtual, it was only ever invoked for player pets in specific situations. This makes it classic developer bait.
  - Adjust PetAI to use DamageTaken instead of AttackedBy.
  - Adjust behavior of AttackStart on PetAI to compensate.
2017-06-07 02:50:14 +02:00
treeston
2b721ca16c SAI fixes follow-up: I missed one. 2017-06-06 22:22:01 +02:00
treeston
3cc2419c2f Fix a whole set of possible infinite loop crashes in SAI (events triggering themselves even with cooldown set). 2017-06-06 22:14:22 +02:00
treeston
24c89fba76 Re-check target evade state on projectile impact and adjust accordingly. This fixes the incorrect message ("Absorb" instead of "Evade"), and also removes the root cause of the original evade follow bug (that was prevented in 1945874). 2017-06-06 19:32:18 +02:00
Aokromes
71fe37a55b build fix 2017-06-06 11:29:00 +02:00
Aokromes
b504b71f49 rename files 2017-06-06 08:49:05 +02:00
Golrag
3afbcbc0e4 Core/VMaps: Fix LoS in Strand of the Ancients (#19847)
Core/Collision: Fixed MOPY chunk flags enum.

Also avoid loading destructible WMOs into vmaps.

VMap re-extraction is required.

Closes #15798.
2017-06-06 08:44:49 +02:00
ariel-
c7e617b689 DB/Spell: prevent Vile Gas (H Rotface version) from hitting non-players 2017-06-06 08:42:48 +02:00
Killyana
1d24896182 DB/Creature: Add some missing Beryl Mage Hunter 2017-06-06 08:42:28 +02:00
Shauren
900a2da03d Core/Instances: Fixed and optimized instance id reuse 2017-06-06 08:00:10 +02:00
Keader
bc1887c5df Core/Spells: Allows Dispersion under Freeze (stun by hunter trap) 2017-06-06 07:55:49 +02:00
TecDian
25ba21f85e Core/Scripts: simplify speech for DK races quests 2017-06-06 07:55:36 +02:00
Killyana
df98cc7e8d DB/Creature: Add some missing spawns in Borean Tundra 2017-06-06 07:54:51 +02:00
Keader
c496224e18 DB/Spells: Fixed Focused Attacks proc with Mutilate
close #19845
2017-06-06 07:53:54 +02:00
Keader
1051412e50 Core/Spells: Allows Dispersion and Barkskin to be used under death coil 2017-06-06 07:53:19 +02:00
Killyana
2f39f51826 DB/Creature: Fix some spawns on Borean Tundra 2017-06-06 07:49:51 +02:00
treeston
a6b393c2af clang is dumb 2017-06-06 07:49:31 +02:00
treeston
68c500f020 Some improvements to .debug raidreset command. Now supports heroic difficulty 5-man dungeons and outputs sensible text, as opposed to silently doing (or not doing) stuff. 2017-06-06 07:49:02 +02:00
Aokromes
80c0d0ce8a Merge branch 'broadcast_text_fix' into '4.3.4'
Use sound id from BroadcastText template if one is specified in creature_text

See merge request !46
2017-06-04 22:32:33 +00:00
Krudor
206af48400 Use BroadcastText sound id if one was found 2017-06-04 20:50:07 +02:00
Aokromes
c8319bd951 DB/Misc: Misc fixes
By Malcrom
2017-06-03 00:47:11 +02:00
Aokromes
74bdf621eb more travis fix 2017-06-02 21:57:53 +02:00
Aokromes
98adfe93c1 make travis happy 2017-06-02 21:48:10 +02:00
Aokromes
a68dd40235 tabs 2017-06-02 17:28:38 +02:00
Aokromes
beeb87448b more typo fix 2017-06-02 16:39:49 +02:00
Aokromes
e233b0f844 fix another typo 2017-06-02 16:30:24 +02:00
Aokromes
4b4c461b5a typo fix 2017-06-02 16:23:48 +02:00
Aokromes
214b5a65e3 DB/Misc: Misc fixes for Dun Morogh
By Malcrom
2017-06-02 16:07:06 +02:00
ariel-
2e3197f944 Core/Globals: add more AIName and MovementType checks to ObjectMgr
- Ninja fix AI factories (restores prev behaviour of not selecting stuff with PERMIT_BASE_NO)

Closes #19831
2017-06-02 10:23:44 +02:00
Keader
58747b0037 Core/Scripts: Fixed some events that not should triggered by non-players on Illidan encounter 2017-06-02 10:23:28 +02:00
Aokromes
ab48f6d3fe DB/Creature: Fix incorrect MovementTypes 2017-06-02 01:50:34 +02:00
Aokromes
f5a923f834 DB/Creature: Fix 2 incorrect MovementType
Updates #19831
2017-06-02 01:47:04 +02:00
Shauren
0a61a3ffb5 Core/Groups: Fixed calculating canReset attribute
Broken in d6df19cd99.
2017-06-02 00:23:00 +02:00
Shauren
080fd33e13 Revert "Core/Groups: fix wrong query for loading group instance data. canReset attribute was calculated in the wrong way"
This reverts commit 0c1dd398bd.

Closes #19745
2017-06-02 00:22:46 +02:00
Aokromes
627e5f3c3c DB/Misc: Fix structure 2017-06-02 00:21:13 +02:00
Aokromes
58c9ac5c68 DB/Misc: Human start zone fixes 2017-06-02 00:07:08 +02:00
Aokromes
123c10a395 Scripts/Stockades - Add scripts to instance
By Artamedes
2017-06-01 23:55:52 +02:00
Keader
4292ac7039 Core/Spells: Removed duplicated check again followup 3a0417f712
to send some info to client
2017-06-01 14:05:32 +02:00
Keader
52551be039 Core/Spells: Removed duplicated check
unitTarget was checked twice in Spell::EffectTaunt
2017-06-01 14:05:14 +02:00