Commit Graph
1676 Commits
Author SHA1 Message Date
Aokromes 0852050e68 Core/Logs: Fine tune more logs
And move others to more logical appenders
2016-08-12 12:18:19 +02:00
Aokromes 6a9c753029 Build fix, this time yes 2016-08-12 07:51:26 +02:00
Aokromes 7ab4915b13 compile fix 2016-08-11 05:05:33 +02:00
Aokromes 64a693a4ae Core/Chat: general cleanup and revamping: (#17576)
- Remove duplicate ObjectGuid in Channel (both as key and value member)
- Add const-ness to Channel methods
- NULL->nullptr
- const type* -> type const*
- Removed all instances of std::map::operator[] except where it is actually INTENDED to insert an element
- Use Trinity::StringFormat instead of snprintf
2016-08-11 03:56:10 +02:00
Aokromes e51220bf87 Core/Handlers: actually check allowed trainer classes and races to avoid spoofing 2016-08-10 21:04:30 +02:00
Aokromes da3f7d464c Core/PVP: Move report AFK requirement to config (#17699) 2016-08-03 11:42:59 +02:00
Aokromes 4bc52061e6 Core/Quests: Delete all quest bound items on quest reward, failure or abandoning
By runningnak3d
2016-07-30 12:13:01 +02:00
Nyeriah fd1a0cd4f0 Core/Player: Actually close tickets when characters are deleted
* Solves issue with tickets being open indefinitely if characters are deleted while tickets are still open
2016-07-30 12:05:27 +02:00
ariel- 88bb891a71 Core/Misc: fix issues reported by static analysis 2016-07-26 03:15:20 -03:00
ariel- 4a96106d60 Core/Spells: finish porting SPELL_AURA_MOD_SPELL_CATEGORY_COOLDOWN handling from 6.x 2016-07-23 06:11:56 -03:00
ariel- 1eeff3a295 Core/Player: misc codestyle 2016-07-23 04:20:44 -03:00
ariel- 65d6a4cca1 Core/Player: Misc codestyle 2016-07-20 19:51:39 +02:00
SnapperRy 836b9180fe Core/Mail: implement a way to specify NPC sender for mails when they should be different from the quest ender (#17601) 2016-07-20 19:46:37 +02:00
ariel- ef8e83f99d Core/Player: silence warning 2016-07-20 19:40:53 +02:00
Aokromes 79c5d21d36 Core/Conditions: implement CONDITION_DAILY_QUEST_DONE to check whethe…
…r or not a daily quest has been completed by a player in that day.

Also use it to fix two quest chains broken in commit 7905651. Should be the only ones of their kind.
2016-07-20 19:40:21 +02:00
Shauren 286e796a55 Core/Quests: Failing/abandoning a quest should not unconditionally remove required items, non-quest specific items such as crafting reagents should remain in inventory 2016-07-20 19:31:30 +02:00
Brian 43686f2c7f Core/Quests: Remove quest items that were looted if they are unique, bound, quest items, when abandoning a quest. (#17556) 2016-07-20 19:31:09 +02:00
SnapperRy 3fa8965fff Core/SpellArea: iterate spell_area entries by player's current area instead of quest id. (#17509) 2016-07-20 19:22:25 +02:00
Snapper c82ecf4976 Core/Misc: use enum for UNIIT_NPC_FLAGS' zero values 2016-07-20 19:17:06 +02:00
Aokromes 543953fb75 Core/Player: Move few logs of loglevel and add few notes (#17554) 2016-07-20 19:16:43 +02:00
Snapper 429a4bc13b Core/Misc: kill whitespace and use enum instead of hardcoded value. 2016-07-20 19:16:18 +02:00
SnapperRy 6f7dc7e86d Core/Quest: don't save queststatus for autocomplete quests (#17487) 2016-07-20 19:15:50 +02:00
SnapperRy a8a8ff596d Core/Quest: do not save/load Dungeon Finder/daily/repeatable quests as completed (#17458)
* Core/Quest: do not save/load Dungeon Finder/daily/repeatable quests as completed
2016-07-20 18:33:33 +02:00
Treeston 257a0b5f6f Creature/Loot: Do not display "lootable" sparkles for player even if others in the group still have quest items to be looted from creature. (#16265) 2016-07-20 18:05:51 +02:00
Aokromes 6d86976904 compile fix 2016-07-20 17:11:09 +02:00
Alan Deutscher 7cfe75acf0 Adjustment to Player::SetViewpoint to allow for Mind Vision "hops". (#17041)
* Adjustment to Player::SetViewpoint to allow for Mind Vision "hops".

* Dynamic objects should not be a valid viewpoint for spells like Mind Vision.

* Dynamic objects should not be a valid viewpoint for spells like Mind Vision.

* Removed redundant TYPEMASK_PLAYER check.

* Moved SetSeer outside of if statement.
2016-07-20 16:36:39 +02:00
Tiuz90 eafbdb2678 [Core/Spells]Warrior, fixed bladestorm aura remove due to weapon swap (#16873) 2016-07-20 16:24:20 +02:00
DDuarte d8bd7aa551 Core/Items: Missing renames 5faaddcf6bba50845f46a98a6387ffcd8abad2b8 2016-07-20 16:04:39 +02:00
Aokromes ef28a6c817 Core/Quest: send SMSG_QUESTGIVER_STATUS_MULTIPLE after a quest is rew…
…arded.

This updates the status of nearby questgivers and prevents them from being stuck in a state that's no longer valid (for example, stuck with yellow question mark until area update).
2016-07-20 15:54:01 +02:00
jackpoz 4aa993607a Core/Player: Fix duel edge case crash
Fix a crash that could be triggered if an aura removed after duel finished would have caused damage to one of the players.
2016-07-20 15:50:04 +02:00
treeston a509a209c6 Revert "PvP/Dueling: Fix an edge case crash that could happen if a duel ended while an aura effect was being removed (Living Bomb, Unstable Affliction and similar). Closes #17177."
This reverts commit 73cfbdcf9f2c26b55ab11061834c0b0ce6fc41ce.
2016-07-20 15:49:51 +02:00
treeston 08b78720bb PvP/Dueling: Fix an edge case crash that could happen if a duel ended while an aura effect was being removed (Living Bomb, Unstable Affliction and similar). Closes #17177. 2016-07-20 15:49:23 +02:00
Aokromes 00fa7d03ed AI/PlayerAI: Finally implement cast logic for controlled players. 2016-07-20 15:19:53 +02:00
Aokromes 20ac85954b Core/Quests: Remove wrong call to SendQuestComplete() 2016-07-20 14:30:52 +02:00
Shauren e58f0e805c Core/Units: Renamed and documented UNIT_FLAG_DISABLE_MOVE to prevent people from trying to use this flag to root a creature leaving them wondering why it doesn't do anything 2016-07-20 13:56:16 +02:00
Aokromes 006d89310b Core: updated creature type flags enum (#17128)
Core/Misc: Update CreatureTypeFlags enum according to TrinityCoreWiki
2016-07-20 13:47:25 +02:00
Shauren 0233ced55e Core/Auras: Implemented auras SPELL_AURA_PREVENT_DURABILITY_LOSS and SPELL_AURA_PREVENT_DURABILITY_LOSS_FROM_COMBAT
(cherry picked from commit 17118f4832d527f160dc300a52db7ba6c255bce2)
2016-07-20 13:21:47 +02:00
Aokromes 11636faadf Core: define CREATURE_FAMILY_NONE to avoid magic numbers in code 2016-07-20 12:49:38 +02:00
Aokromes cd9acb7d05 Core/Spells: Fixed overwriting summon requests 2016-07-19 17:15:06 +02:00
Aokromes a65ac56b74 Core/Entities: Ported byte field offset naming from 6.x 2016-07-19 15:08:35 +02:00
Aokromes a71da1c603 Entities/Unit: Finally fix no-path evasion.
- When a creature cannot find a path to its victim, it begins evading all attacks and regenerating health.
- If this persists for 5 seconds, it evades back to spawn position with new EvadeReason value EVADE_REASON_NO_PATH.
- Also some SmartAI cleanup (why oh why does it have so much duplicated code) and getting rid of #defines in favor of type-checked compile-time constants.
2016-07-19 13:33:04 +02:00
Aokromes f5de65fd96 Core/Misc: MSVC /W4 warning fixes 2016-07-19 13:02:54 +02:00
Aokromes 3f0c7f6b2f Core/Spells: Renamed EnsureSpellInfo to AssertSpellInfo to minimize differences between branches 2016-07-19 12:02:52 +02:00
Aokromes 193489f3a7 Core/Players: Split playerBytes fields in characters table
(cherry picked from commit 2a6f65f)
(i think i don't have broken nothing, loged with fresh created chars and old chars and all looks to be ok)
2016-07-18 21:14:24 +02:00
ariel- afc0718191 Core/Player: fix crash
Closes  #17073
2016-07-17 14:12:28 +02:00
Aokromes e7293ceb6b Compile fix part 2 2016-07-15 21:32:45 +02:00
Aokromes fa5965fdfb Core/Battlefield: Tol Barad
By Mihapro
2016-07-15 15:02:09 +02:00
Aokromes 02784be121 Core/Misc: Fix camera and player collision not updating when object scale changes
By Krudor
2016-07-06 21:38:28 +02:00
Roc13x 5e320797d1 Core/Player: Fix talent learning
Broke since 78d1dfd11a where this talent code was randomly deleted somehow
2016-06-22 23:03:54 +00:00
r00ty-tc 527654b512 [Core/Maps] Activate creatures and objects during opening cinematics
As well as other flyby cameras (like sunwell etc)

Requires re-running map extractor to extract camera m2 files from data
files. These are very small.
2016-05-18 21:31:07 +01:00