Commit Graph
9901 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 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. (f81754a306a8b1f24f0b130ded3c8170e9b146c5 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
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
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 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- 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 beedf737c815c1f946381904417471c42a21de76)
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- 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
treeston b2452df995 Entities/GameObject: Expose GO rotation to scripting. 2016-08-25 15:00:12 +02:00
Aokromes 5643a150ad Core/Misc: Compile fix
P.S. i hate retard small branches diffs.
Very likely we miss some 6.x to 3.3.5a port on 4.3.4
2016-08-24 21:02:47 +02:00
Aokromes 67b420115c 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 20:52:01 +02:00
Aokromes a16c5a2b2e Core/Movement: Properly clear UNIT_STATE_MOVING when reaching chase target 2016-08-24 19:24:15 +02:00
Aokromes 785bf03551 Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4 2016-08-24 19:21:11 +02:00
Aokromes 332feace2c 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 by treeston
2016-08-24 19:20:37 +02:00
roc13x 62e30175d8 whitespaces 2016-08-24 11:49:47 +01:00
roc13x 65ec46c890 Core/TB: Fix build
Moved statics to cpp
Added gameobject rotations
2016-08-24 11:35:04 +01:00
Aokromes 0448f4e64f Core/Datastore: Disable unused values to fix warnings 2016-08-24 11:41:31 +02:00
ariel- 9203ab1004 Core/SmartAI: fix warning reported by VS2015 2016-08-24 10:26:03 +02:00
SnapperRy ac4ceed1da 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 10:24:18 +02:00
SnapperRy 55757c0d68 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-24 10:23:34 +02:00
SnapperRy 2d7dc9c9eb Core/Event: prevent seasonal quests from resetting at server restart (#17455)
Closes #16015.
Closes #16413.
2016-08-24 10:23:17 +02:00
Aokromes 7bf600013b Core/TolBarad: Remove whitespaces 2016-08-22 21:40:17 +02:00
Shauren b1f20ced7a Core/Creatures: Exclude despawned creatures from being found by "nearest entry" searchers
Updates #11418
Closes #17706
2016-08-22 21:11:14 +02:00
Shauren a3d4957150 Typo fix 2016-08-22 20:54:59 +02:00