Commit Graph

5290 Commits

Author SHA1 Message Date
Aokromes
6c686876d0 Core/Scripts: fix some /W4 warnings 2017-06-12 17:49:39 +02:00
Aokromes
5c4153ba98 Core/OutdoorPvP: refactor using Position and Quat to pack parameters
- Moved statics to cpp
- Save scriptids into an array
2017-06-12 17:40:47 +02:00
Aokromes
9057cae219 So, I came in trying to fix gameobject LoS. So I restructured some stuff.
Then it turned out that gameobject LoS is already fixed. So all this does, really, is restructure some stuff.

And remove the hack from Sapphiron because I could.
2017-06-11 19:02:07 +02:00
ariel-
e05083ad4b Core/Scripts: remove non-player objects (ie corpses) from Sindragosa's Fury targetlist 2017-06-11 17:50:11 +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
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
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
ac3dbcb880 Core/Utilities: Rename RandomResizeList->RandomResize as it is no longer restricted to a list 2017-06-07 09:53:04 +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
TecDian
25ba21f85e Core/Scripts: simplify speech for DK races quests 2017-06-06 07:55:36 +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
a68dd40235 tabs 2017-06-02 17:28:38 +02:00
Aokromes
214b5a65e3 DB/Misc: Misc fixes for Dun Morogh
By Malcrom
2017-06-02 16:07:06 +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
123c10a395 Scripts/Stockades - Add scripts to instance
By Artamedes
2017-06-01 23:55:52 +02:00
Aokromes
2d94972577 missing part 2017-05-30 10:20:27 +02:00
sirikfoll
519af6e6e6 Core/Scripts Properly set Freya's BossState do DONE and avoid some loot exploits
Closes #19823
2017-05-30 09:57:03 +02:00
Aokromes
dff1518ac2 Scripts/Command: implement .debug play music command 2017-05-30 09:55:45 +02:00
Ryan
1442984686 Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4 2017-05-28 19:10:00 +01:00
Ryan
5e50bb9481 Fix warning and whitespace 2017-05-28 18:39:41 +01:00
treeston
3fa862ab38 Instances/Ulduar: Fix a super edge case bug where Algalon would evade if his tank successfully tanked a Cosmic Smash and got knocked up. Shadow priests everywhere rejoiced. 2017-05-28 03:18:18 +02:00
ariel-
f8a222aab9 Scripts/VioletHold: fix stack overflow when reflecting 'Splash'
Closes #19514
2017-05-28 03:11:40 +02:00
Aokromes
6e49330f54 Fix missing changes 2017-05-23 15:20:21 +02:00
Aokromes
2f5086479f Fix build 2017-05-23 14:38:41 +02:00
Aokromes
f0e36b0863 Core/Defines: define faction templates and replace magic numbers from scripts 2017-05-23 14:37:54 +02:00
ccrs
b2b6d55cb4 Scripts/ICC: add missing cases for Dark Martyrdom difficulty entries
how come nobody noticed this?
2017-05-23 13:33:24 +02:00
Aokromes
092c566ad3 Core/Scripts: improvements on the Thorim script
Improvements done to initial work by joschiwald:

- Fixed stormhammer casting and visuals
- Fixed spell credits
- Implemented removal of Impale when HP is higher than 90%
- Corrected faction templates for the pre combat creatures
- Implemeted Leap on the arena adds (thanks to joschiwald for implementing conditions)
- Scripted lighting charge using AuraScript periodic
- Fixed timings
- Corrections on the hallway encounters (added knockback immunity to minibosses too)
- Fixed multiple blizzards issue
- Lever will now reset properly, should players fail to get inside. This allows the door to be opened more than once during the combat
- Corrections in the outro event
- Implemented paralytic field traps on the hallway.
- Implemented Ancient Gate of the Keepers opening.
- Changed blizzard bunny targetting to conditions entirely.
- Removed obsolete scripts
- Standards: delete spell script names by ScriptName instead of spell_id
- Swapped factions for pre-adds (alliance should get horde trash and vs)
- Fixed Leap setting home position for adds
- Removed a bunch of magic numbers
- Runic Colossus should finish current Runic Explosion before beginning to attack
- Fixed UpdateAI logic to put it in line with other scripts (ie don't stop casts)

Special thanks to:
- chaodhib for the blizzard trigger waypoints and investigation on spell radius
- Malcrom for creating the Conditions Creator :P
2017-05-23 13:31:44 +02:00
joschiwald
364dfc9c4c Scripts/Ulduar: Initial implementation of the Thorim Encounter
Closes #7651

Fix logic fail in achievement:
SPELL_LIGHTNING_CHARGE aka 62279 is casted on Thorim itself to buff him, not the damage spell tracked by the achievement.
2017-05-23 13:26:10 +02:00
Ryan
20726edec2 Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4 2017-05-19 23:49:46 +01:00
Ryan
7d3d3be2a8 Core/Scripts: Remove happiness-related code 2017-05-19 23:49:22 +01:00
Aokromes
8020f4b6f5 Remove dead code 2017-05-07 06:51:21 +02:00
Aokromes
6a7f15ecf4 Scripts/Commands: Update reload commands names 2017-05-07 06:05:53 +02:00
Aokromes
0fbcdca05e Core/Collision: Replaced phasemask with proper phases in GameObject c…
…ollision calculation
2017-05-06 01:55:17 +02:00
roc13x
97e8b18ceb Core/Scripts: Import missing gen/item scripts 2017-05-05 04:26:38 +01:00
ariel-
1e475a6942 Core/Scripts: implemented enchant Blade Warding 2017-05-05 04:02:32 +01:00
ariel-
ea20370fce Core/Scripts: kill a warning 2017-05-05 03:59:01 +01:00
ariel-
e2ac33fdc2 Core/Scripts: Victory Rush and Rune Strike proc correction
(d0f760420a follow up)
Closes #19192
2017-05-05 03:58:50 +01:00
roc13x
0242bd6f20 Build fix 2017-05-05 03:51:07 +01:00
xinef1
b88200cd58 Core/Misc: Various crash fixes 2017-05-05 01:59:34 +01:00
Gerhood
0e1cc63055 Core/Spells: implement Mad/Crazy Alchemist's potions 2017-05-04 04:17:24 +01:00
ariel-
85cfc406dd Core/Script: Implement Paralytic Poison
Closes #16905
2017-05-04 03:45:26 +01:00
ariel-
c62077237d Core/Spell: restore old proc system behaviour on auras self proc. 2017-05-04 02:21:58 +01:00
ariel-
b7b69b88ba Core/Unit: damage immune improvements 2017-05-04 01:48:16 +01:00
ariel-
04b562418e Core/Spell: make a distinction between triggered flags with debugging purposes, and don't use them when casting triggered spells 2017-05-04 01:27:22 +01:00
ariel-
3d9c4fd3fc Core/Spells: use DamageInfo struct to calc spell absorbs and resists, and use calculated proc hitMask on aura ticks 2017-05-04 01:07:05 +01:00
ariel-
a6b4f239a4 Add some DamageInfo null checks 2017-05-04 00:17:13 +01:00
ariel-
a7a024d1d6 Core/Auras: reset periodic aura timers by default. Except when aura comes from triggered spell 2017-05-03 23:51:47 +01:00
ariel-
91c4b5edb0 Core/Scripts: add even more headers 2017-05-03 23:43:57 +01:00
ariel-
627a285a71 Core/Scripts: add more headers required for NoPCH 2017-05-03 23:43:45 +01:00