Commit Graph

8445 Commits

Author SHA1 Message Date
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
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-
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
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-
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
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
xinef1
ce1108b8a2 Corrected calculation for SPELL_AURA_PERIODIC_DAMAGE_PERCENT (#19060) 2017-03-01 20:12:57 -03:00
xinef1
fb2aebe46b Core/Misc: Always reward all necessary reputations on creature kill (#19106) 2017-03-01 20:10:15 -03:00
xinef1
9b284ab329 Remove auras interrupted by falling when we fall to the ground or water (#19115) 2017-03-01 20:08:12 -03:00
ariel-
bb553743af Core/Misc: always output client cache version on loading 2017-03-01 12:47:43 -03:00
ariel-
ff43a74822 Core/Entities: spawned movementtype should override template movementtype
Core/SmartAI: pass the CreatureData pointer (if any) on updating template

Closes #19223
2017-02-28 16:39:59 -03:00
ariel-
2e68736afc Core/Movement: Corrected all speed checks after 23b6991273
Ref issue #19210
2017-02-28 15:18:09 -03:00
ariel-
7de5befbc3 Core/Auras: fix more unused parameter warnings 2017-02-27 14:38:00 -03:00
ariel-
9047d8bd6f Core/Auras: fix comparison of integers of different signs warning 2017-02-27 14:34:23 -03:00
ariel-
40489b8d57 Core/Auras: fix unused parameter warning 2017-02-27 14:31:28 -03:00
ariel-
c69a7d1223 Core/Auras: reworked multiplicative AuraEffects calculation
- Splitted containers for flat modifiers and pct modifiers, as they now have different handling
- Amount is now multiplied only on apply; on unapply, iterate through auras and reset the counter
- Fixes many cases of rounding error due to applying/unapplying of small factors
- Allows amounts to be zeroed (ie with an AuraEffect of amount -100)
- Do a partial revert of 6dc37a9add, auras should update amounts only for items allowed (ie no more giving crit to a sword while having an axe in the other hand and being Poleaxe spec'd)
- SPELL_AURA_MOD_SCALE now scales additively, rather than multiplicatively (checked in sniffs)

Closes #18687
2017-02-27 14:24:20 -03:00
jackpoz
8f2bcd79da Core/Misc: Fix static analysis issues 2017-02-25 17:07:22 +01:00
jackpoz
6940071994 Core/Misc: Fix static analysis issues 2017-02-25 15:54:11 +01:00
ariel-
01f5befcec Core/Scripts: Thrusting Hodir's Spear
- Everything is sniffed, enjoy this hell of a quest!

Closes #12808
2017-02-25 04:46:02 -03:00
Gustavo
4224259d83 Core/Unit: Correct speed calculus when affected by SPELL_AURA_MOD_MINIMUM_SPEED (#18136) 2017-02-24 12:20:20 +01:00
ariel-
6c9bda6093 Core/Conditions: CONDITION_SOURCE_TYPE_QUEST_ACCEPT should not prevent completed question mark from showing (#18151 follow up)
Closes #19188
2017-02-23 03:29:29 -03:00
ariel-
08fdac340c Core/Players: fix 2 Seal of Righteousness spells on paladins
Closes #14239
2017-02-23 02:51:31 -03:00
ariel-
d61e0f79c4 Core/Entities: Fix null-dereference crash
Closes #19191
2017-02-23 02:09:44 -03:00
ariel-
d0f760420a Core/Scripts: remove no longer needed scripts, use db attribute for disabling procs
(e7ccd8ea3f followup)

- Fix some broken procs after c0cb823a91

Closes #19068
2017-02-22 17:54:12 -03:00
ariel-
f948ae80fc Core/Spell: fix Glyph of Devastate interaction with Glyph of Sunder Armor
- Killed existing ModStackAmount hack, spell is always casted in sniffs (twice with Glyph of Devastate)

Closes #14633
2017-02-22 16:50:05 -03:00
ariel-
f609e7a08b Core/Spells: refactor spell_enchant_proc_data table
- Renamed fields to mimic those in spell_proc
- Added Enchant proc attributes for controlling specific enchant features

Ref #7789
2017-02-22 00:11:49 -03:00
ariel-
eac9c1f0b9 Core/Scripts: fix Nightfall proc chance and reduce it for victims with level above 60
Closes #15734
2017-02-21 22:38:30 -03:00
treeston
b3b4054eb4 Core/Creature: Fix SetSpawnHealth so it cooperates with the colossal hack that is Battleground::AddCreature. *puke* 2017-02-22 02:31:32 +01:00
ariel-
f4ae639961 Core/Spells: fix Hand of Justice proc chance and reduce it past level 60.
Ref #7789
2017-02-21 21:20:33 -03:00
ariel-
b4b031bcd4 Kill whitespace 2017-02-21 19:38:45 -03:00
ariel-
f96f1cebd4 Core/Packets: readd incorrectly removed line
Closes #19180
2017-02-21 17:14:11 -03:00
Gustavo
3a67c8e361 Core/Misc Remove Tabs and Whitespaces (#19179) 2017-02-21 18:37:34 +01:00
ariel-
2559874e8d Core/ItemTemplate: remove excedent #includes 2017-02-21 03:10:20 -03:00
ariel-
dd1aa64563 Core/Packet: convert query packets into new system.
- Extra c++11-ification of existing code
- Refs #18637
2017-02-21 03:03:58 -03:00
ariel-
c274ea8a98 Core/Misc: changed WorldPacket pointers to const
- Packet update sync with master
2017-02-20 16:43:16 -03:00
xinef1
ae9d01a324 Store cached static data queries, instead of building them in every query opcode (#18637)
- Added config option to enable / disable cache
- Reinitialize data on reload command use
- Always send WDB fields in item query
2017-02-20 16:27:08 -03:00
xinef1
4eae29d421 Properly stop attacking after player leaves ffa area (like Gurubashi Arena) (#18952) 2017-02-20 15:03:11 -03:00