Commit Graph

21630 Commits

Author SHA1 Message Date
xjose93
882453253f Core/Commands: Implement .neargraveyard (find nearest graveyard from dbc). 2016-09-04 00:19:13 +02:00
treeston
77631a8cde Drycoding is bad, mmkay? 2016-09-03 17:30:37 +02:00
treeston
9a829b4761 Scripts/Events: Globally fix all ExecuteEvent loops to check UNIT_STATE_CASTING after each iteration, instead of just checking it once initially 2016-09-03 17:26:20 +02:00
treeston
2fbb01eebd Core/SmartScripts: Add missing break, 5f43e7b follow-up. 2016-09-03 01:21:26 +02:00
treeston
9da4e304ae Scripts/SmartScripts: Fix charmed behavior for SmartAI. For real this time.
- Core AI logic will no longer issue attack/movement commands while under player control.
- Add new SMART_EVENT_FLAG_WHILE_CHARMED (0x200). Any event without this flag won't run while charmed.
- Add SMART_EVENT_FLAG_WHILE_CHARMED to existing actions, except a select subset (movement, talking, and nontriggered casts, pretty much).
2016-09-03 01:21:03 +02:00
ariel-
97a404803d Another build fix.
(it was probably better to just revert the commit instead)
2016-09-02 10:48:29 +02:00
ariel-
8ab6ba6ebc Note to self: drycoding is bad 2016-09-02 10:48:06 +02:00
ariel-
f4957850e1 Core/Spell: no need to bloat existing parameter lists. (f81754a306 follow up) 2016-09-02 10:47:41 +02:00
ariel-
01ebe31fa8 Core/Spell: Workaround cobra strikes into a charged aura instead of stacked.
Fixes #754
2016-09-01 15:20:11 +02:00
ariel-
8e96d7fc8e Core/Spells: register SPELLMOD_CRITICAL_CHANCE in casting spell modifiers. 2016-09-01 15:19:49 +02:00
ariel-
fe32fffa56 Core/Spells: Remove spellmods from SpellMod owner instead of caster (needed so pet casts properly remove aura charges) 2016-09-01 15:19:29 +02:00
ariel-
87bcba9a1f Core/Spells: fix Bullheaded immunities
Closes #421
2016-09-01 15:19:11 +02:00
treeston
c3843eee9f Core/Position: Allow implicit casting to G3D::Vector. Also, add a utility overload to MotionMaster. 2016-09-01 15:18:16 +02:00
Aokromes
3e00b379f3 Scripts/Misc: Delete no longer used files 2016-08-31 08:44:01 +02:00
treeston
e3065ab4dc Replace a leftover const char* with a std::string const&. 2016-08-31 08:40:12 +02:00
treeston
109d87d3c3 Entities/Gossip: The Big One™ that gets rid of all uses of The Bad™ and The Ugly™, e.g. gossip preprocessor macros, and replaces them with the new-and-shiny gossip functions. 2016-08-31 08:39:33 +02:00
treeston
31aa5cd8c6 Fix dynamic build. 2016-08-31 08:19:02 +02:00
tkrokli
ffc47e0c4c Core/Scripts: remove forgotten #define in boss_kalecgos.cpp
This #define was originally supposed to be removed in my PR #17832,
but for some reason it remained undeleted. This commit corrects it.

Also aligned all the enum values to the same column for readability,
based on a common multiple of 4 spaces.
2016-08-31 08:18:51 +02:00
Aokromes
0d829c7d2d Core/Misc: Minimize differences between branches in WorldSession::Update
This commit removes OnUnknownPacketReceive script hook - it could never be fired anyway at that point
2016-08-31 08:15:01 +02:00
Naios
f0e47a27f9 Core/Define: Remove the conditional macro for constexpr.
* Not needed anymore since the requirements were raised to MSVC 2015.
2016-08-29 22:08:31 +02:00
Naios
65e2355c8f Core/Common: Correct the linking of localeNames 2016-08-29 22:08:15 +02:00
Naios
2f22212d0d Core/Unit: Force cancel unit events before invalidating the object on destruction
* Closes #16675
2016-08-29 22:08:02 +02:00
Aokromes
df2c6972c4 Whitespace clean-up 2016-08-29 01:20:31 +02:00
treeston
08d3b0ccb9 Last one. For real. Please. (Build fix #5). 2016-08-28 20:14:25 +02:00
treeston
da4f85a4a8 ....right, I actually went through a full rebuild now just to make sure it works. 2016-08-28 20:09:44 +02:00
treeston
1f8cd54c76 Build fix. Again. Oops. 2016-08-28 20:09:28 +02:00
treeston
f38e2c3973 You saw nothing (build fix). 2016-08-28 20:08:55 +02:00
treeston
e8985223b8 Creature/Gossip: offer replacement functions for the existing preprocessor gossip macros 2016-08-28 19:47:31 +02:00
Aokromes
ffb7c7f25e Core/Achievements: Fix some comments 2016-08-28 12:26:03 +02:00
Aokromes
77e2e43c13 Core/Player: removed unused function prototypes 2016-08-28 11:15:20 +02:00
ariel-
a6ab7196ca Core/GameObject: save spawn GOState and reset to it instead of toggling from whatever current state we have
Prevents exploit of SMART_ACTION_ACTIVATE_GOBJECT
2016-08-28 10:35:12 +02:00
ariel-
4acebe6c91 Core/Scripts: Professor Putricide oozes, reapply passive proc auras on reset, and register them as PP summons since they're summoned by a trigger. (f183ed3c50 follow-up) 2016-08-28 10:20:14 +02:00
ariel-
f6aa0e1796 Core/Entities: Added possibility to construct a Position using a G3D::Vector3 2016-08-28 10:19:18 +02:00
joschiwald
fa87649f13 Core/Logging: delete old logs of the own realm only
(cherry picked from commit beedf737c8)
2016-08-27 17:47:53 +02:00
Aokromes
9feafe00bb Entities/Unit: Add overload to NearTeleportTo taking Position const&. 2016-08-27 09:30:32 +02:00
treeston
e12a7116f8 Entities/Creature: Add arg2 to DespawnOrUnsummon to allow overriding respawn time. This matches changes that will be merged as part of dynamic spawning, allowing scripts to transition early. 2016-08-26 00:02:16 +02:00
SnapperRy
ca98eaf408 Core/Unit: do not refresh last damaged timer if hit by SPELL_AURA_DAMAGE_SHIELD.
Fixes spells like Retribution Aura, Thorns and Damage Shield that were preventing units from evading.
2016-08-26 00:01:57 +02:00
Ryan
e344fc9cbf Core/Instance: Fix GetInstanceSave sometimes checking the wrong map (#17856) 2016-08-26 00:01:40 +02:00
ariel-
9b8a4b5fea Core/Scripts: fix math error that would not select points on the entire circle 2016-08-25 15:01:16 +02:00
ariel-
f404226fb1 Channel Followup: avoid setting an invisible gm as Channel owner (#17597)
* Core/Chat: avoid setting an invisible gm (as in .gm visible off) as channel owner, giving it away to other players.

- This can now only happen if the channel is empty or every other member is an invisible gm, too.

Fixes #17424

* Feedback based changes
2016-08-25 15:00:55 +02:00
ariel-
6edd4536cf Core/PlayerAI: Fix dynamic build linking 2016-08-25 15:00:38 +02:00
ariel-
0c3e061b2b Update boss_kelthuzad.cpp 2016-08-25 15:00:25 +02:00
treeston
b2452df995 Entities/GameObject: Expose GO rotation to scripting. 2016-08-25 15:00:12 +02:00
Aokromes
8aaea40f03 travis is lazy 2016-08-25 14:59:54 +02:00
Gustavo
3b2e9d4ca4 Core/Scripts Boss Skadi the Ruthless rework 2016-08-25 14:59:21 +02:00
Aokromes
5de3f3c59f Core/Scripts: move npc_experience hardcoded text to DB 2016-08-25 14:59:00 +02:00
tkrokli
1c80212429 Core/Scripts: move #define to enum in boss_kalecgos.cpp 2016-08-25 14:54:11 +02:00
tkrokli
8d1a2284f5 Core/Scripts: move forge_of_souls gossip to DB 2016-08-25 14:53:46 +02:00
Gustavo
f7667cdda6 Core/Scripts Implement Pit of Saron Cavern event 2016-08-25 14:53:14 +02:00
Gustavo
49d4e22c6a Scripts/Pet Implemented Argent Squire/Gruntling and Argent Pony Bridle 2016-08-25 14:52:56 +02:00