Commit Graph

19941 Commits

Author SHA1 Message Date
robinsch
d209aaa00f Core/Social: Implement FRIEND_STATUS_RAF (#19317) 2017-03-19 16:47:56 +01:00
Golrag
020a6b984d Core/Object: Fix Line of Sight issue with object edges
Fixes: https://github.com/TrinityCore/TrinityCore/pull/15807#issuecomment-268077802
2017-03-19 10:32:39 -03:00
jackpoz
9226e21205 Core/Crash: Refactor and fixes
Code cleanup.
Fix buffer overflow crash.
Fix type being truncated to 199 characters.
2017-03-19 11:57:40 +01:00
ariel-
36bb4cabae Core/Spell: add assert checks on SpellMgr::CheckSpellGroupStackRules
Ref #19319
2017-03-19 04:11:55 -03:00
ForesterDev
5d562556c3 Core/SocialMgr: fix case when contacts appears in friend list many times
Closes #19306
2017-03-18 11:07:41 +01:00
Chazy Chaz
a63bd06ec6 Core/Players: Rename "heroic character" to "death knight"
Closes #19287
2017-03-17 19:03:59 +01:00
ariel-
e33263c677 Core/Pet: load template immunities when creating (except for hunters)
Fixes #19275
2017-03-17 13:12:37 -03:00
ariel-
7a38eaa5a1 Core/Unit: properly reset displayIds when having a shapeshift aura active
Closes #19309
2017-03-17 12:35:10 -03:00
ariel-
3b27a06265 Core/Quests: fixed exclusivegroup interaction with prevquestId and nextQuestId.
- They should work as documented by wiki now.
- Add some consts to Player methods
- Fixed negative PrevQuestID to mean only active quest (ie not rewarded/complete, as those quests are required to complete another)

Closes #19300
2017-03-16 02:55:48 -03:00
ariel-
dca276716f Core/Quests: changed quest_template_addon.NextQuestID to unsigned
- No reason to keep this anymore after 4349adf0f2, this is a broken functionality.
2017-03-16 01:27:13 -03:00
ariel-
076293f1f2 Core/Globals: some changes in quest loading
- Made load/reload associated quest tables data-driven, so removed a bunch of similar looking code from ObjectMgr (yay!)
- Codestyle and encapsulation for ExclusiveQuestGroups
2017-03-16 00:57:53 -03:00
ariel-
09701b0229 Core/Globals: Fix Quest codestyle and member variable initialization 2017-03-16 00:57:53 -03:00
Shauren
14abd1f587 Core/Auth: Per SRP6a protocol, terminate connection of A % N == 0. This resolves another authentication bypass issue
(cherry picked from commit cmangos/mangos-wotlk@ea3e08a812)
2017-03-15 21:41:58 +01:00
ariel-
9f2f7ebf51 Core/Auras: unregister AuraEffect from target list before changing amount, forces recalculation at stack change
Closes #19301
2017-03-15 13:46:56 -03:00
ariel-
5eac21098e Core/Auras: use vectors and remove HasEffect check
- Already checked in GetApplicationList
2017-03-15 13:44:24 -03:00
ariel-
c1afabbf03 Core/Auras: make AuraEffect::GetTargetList and AuraEffect::GetApplicationList accept any container 2017-03-15 13:37:56 -03:00
ariel-
f7758954f7 Core/Scripts: add condition check for npc_wyrmrest_defender
minor code refactors

Closes #19299
2017-03-14 20:38:16 -03:00
Gustavo
8c6fa411e8 Core/Scripts: implement boss Apothecary Hummel ("Love is in the Air" event boss) (#19076)
Closes #5114
2017-03-13 10:30:32 -03:00
ariel-
21d95a1d76 Core/Entities: virtualize CheckAttackFitToAuraRequirement
- Should've been like this to begin with
2017-03-12 17:48:07 -03:00
ariel-
e1083794cd Core/Aura: fix SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE unapply case for dead players
Closes #19276
2017-03-12 14:29:32 -03:00
Aokromes
0eaa58dc84 Core/AHBot: Disable few broken items
Closes #19283
P.S: you will need to update your conf.
2017-03-12 13:07:14 +01:00
Aokromes
ab4db663ae Update SmartScriptMgr.h 2017-03-11 15:39:21 +01:00
xinef1
8c80e2b6b7 Core/Spells: Fixed some enchantments checks and fixed serious logic flaw in create item effect check (#19123) 2017-03-11 13:28:34 +01:00
ariel-
8089f1816c Core/Creature: restore previous behavior of random gender on respawn
Little regression added with 253c0f3d07
2017-03-08 12:19:26 -03:00
ariel-
9d639c55b1 Core/Auras: tidy up one little hack 2017-03-08 11:55:09 -03:00
ariel-
7cb6915e2b Core/Creature: Load template immunities into m_spellImmune container.
- Fixes sending SMSG_SPELL_START data

Closes #19212
2017-03-08 11:55:09 -03:00
ariel-
253c0f3d07 Core/Creature: remove some redundant code
- Display Ids are already initialized in InitEntry, no need to duplicate logic
- ModelInfo is already checked too
2017-03-08 11:55:09 -03:00
Keader
bf5661e2fd Core/Scripts: Fixed Ingvar evade issue 2017-03-08 09:43:10 -03:00
ariel-
8e865a60c8 Core/Auras: implement correct model for Bear Form (used by npcs)
Closes #7337
2017-03-07 20:20:19 -03:00
ariel-
c3a2bd32cf Core/Creature: don't override display id if addon tables load a morph aura
Ref #7337
2017-03-07 20:15:30 -03:00
ariel-
804257b99a Core/Scripts: converted Argent Tournament pennants to AI
Closes #14616
2017-03-07 13:33:19 -03:00
ariel-
c7a5aa3902 Core/Auras: Implement Roc form shapeshift
Closes #16164
2017-03-07 12:36:15 -03:00
ariel-
6ba0d489ad Core/Auras: make transform auras honor creature_template trigger flag and choose always invisible models
Closes #19211
2017-03-07 01:23:35 -03:00
Shauren
a1b622e9cc Core/Unit: reduce differences between branches
Very partial cherry pick of:

Core/Units: Updated melee/spell hit chance calculation
(cherry picked from commit 61c7161a10)
2017-03-06 21:37:46 -03:00
ariel-
b2fc4c65ed Core/Creatures: disabled "automatic" monster sparring
- Faction template flags weren't correct.

Closes #19245
2017-03-06 19:11:03 -03:00
ariel-
9c62acdf42 Core/Scripts: fix Glyph of Siphon Life
by Keader
2017-03-05 13:24:33 -03:00
xinef1
071ba2c924 Corrected doors and buttons without autoclose time after recent changes (#19249) 2017-03-05 17:14:29 +01:00
ariel-
05d99c5f58 Core/SmartAI: Allow scripting GameObjects by spawn id too 2017-03-05 04:30:01 -03:00
ariel-
15a207fcac Core/Creature: redo some logical checks in _IsTargetAcceptable
- Check against current creature victim, don't check potential victim attacking list.
- Neutral creatures with aggressive reactstate were triggered to attack from MoveInLineOfSight because of this check
- Prevents attack from a distance after right clicking an npc

Closes #19235
2017-03-04 04:18:55 -03:00
ariel-
ebba8dcba8 Core/Spells: fix some db errors 2017-03-03 21:36:56 -03:00
ariel-
32c5d4f53f Core/Scripts: implement Hammer of the Righteous stacking Seal of Vengeance/Corruption
- Patch 3.2.0 Notes: Only auto-attacks and Hammer of the Righteous can place the debuff on the paladin's current target(s).

Closes #19239
2017-03-03 20:09:23 -03:00
ariel-
2a6fe27cad Core/Game: fix dynamic linking 2017-03-02 22:26:12 -03:00
ariel-
f612b1cb48 Core/Misc: remove unneeded semicolon 2017-03-02 01:22:55 -03:00
ariel-
4596c17dae Core/Achievements: port realm first achievement handling from master
veeeery partial cherry-pick of c75fcbe20b
2017-03-02 01:07:05 -03:00
ariel-
7072bf8c02 Core/Spell: disable proc for magnet auras, they're handled differently
Closes #19208
2017-03-02 00:18:00 -03:00
ariel-
b902f0c1b0 Core/Game: fix non-pch include 2017-03-01 22:27:52 -03:00
xinef1
3fe03392d7 Make ObjectMgrs _mailId and _hiPetNumber atomic (#19129)
- They can be accessed from multiple threads simultaneously
2017-03-01 22:23:18 -03:00
ariel-
affee140c6 Core/Database: Prepared statement parameter preallocation (#18999)
- Pass prepared statement size to the helper class to prevent runtime resizing.
- Rename CheckValidIndex -> AssertValidIndex
- Cached prepared size on the worker pool as it's shared among all connections
- Cached query data only for each connection, done lookup in map instead of possibly creating a new element
- Kill the prepared statement map, and store raw sql string on the MySQLPreparedStatement class
(This info is only used for logging, and there is no need of keeping a second container just for it)
2017-03-01 22:20:53 -03:00
xinef1
7567cafec8 Ensure that all actions are compared to fixed point in time (ie. world update start) (#18910)
- Actions will not be dependent on processing moment
- Increased GameObjects cooldown resolution to milliseconds, fixes arming time of traps to be exactly one second and not something from range (1000, 1999)
- Created GameTime namespace and UpdateTime class and moved there some code out of world
2017-03-01 22:19:25 -03:00
xinef1
7011aabb56 Core/GameObject: regenerate GO loot if respawn time passed since last loot generation time and not all items were taken (#19101) 2017-03-01 20:19:28 -03:00