Commit Graph

19987 Commits

Author SHA1 Message Date
ariel- 1ca8434b36 Core/Spell: don't set scaleAura for some special spells
Closes #14541
2017-04-03 04:04:02 -03:00
ariel- e594c2d096 Core/AHBot: fix a typo 2017-04-03 03:53:50 -03:00
ariel- 7f8bfe68d0 Core/AHBot: Refactor of AuctionHouseBotSeller:
- Use AuctionHouseBot.Class.* for what they really are, priorities, factor them when calculating item amount per class, changed enums to CONFIG_AHBOT_CLASS_*_PRIORITY to reflect this change
- Don't factor in the priority calc empty item lists:
  * Let's say you had AuctionHouseBot.Class.Glyph set to 10, sum of AuctionHouseBot.Class.* is 20, and AuctionHouseBot.Items.Amount.White is 5000
  * If there were no glyphs on the item list, you automatically lost 50% of the total item amount, meaning only 2500 of original 5000 were alloted to fill
- Fixed AuctionHouseBot.AH.Price.Ratio to be an actual percentage factor

- Separated containers in SellerConfiguration, each one better reflects what kind of data is stored there, now we won't use magic index 0 from _ItemInfo :P
- General cleanup, removal of bad voodoo and magical numbers
- Use unordered_sets for loading item lists, as they were only used to check for item presence
2017-04-03 03:29:29 -03:00
ariel- 008ddbf197 Core/Scripts: fix Judgement of Wisdom mana return
Closes #19400
2017-04-03 00:51:56 -03:00
Keader 270a639678 Core/Scripts: Fixing Carbonion/Travis 2017-04-02 11:14:24 -03:00
Keader 6b8c4fb74f Core/Scripts: Fixed Baltharus the Warborn clones
*Clones not working after wipe
*Changed Clone Action for a event (to check casting)
2017-04-02 11:08:29 -03:00
Keader a2a8ffe723 Core/Scripts: Typo in last commit 2017-04-01 21:18:15 -03:00
Keader 8d198cb360 Core/Scripts: Fixed Volatile Ooze/Gas Cloud issues in Professor Putricide
Closes #18925
2017-04-01 21:16:55 -03:00
S.V f3d795d8dd Core/ScriptReloadMgr: Fixed scripts hot swapping on OS X (#19365) 2017-03-31 23:10:18 +02:00
ariel- 006e90339e Revert "Core/Battlegrounds: disable health regen for battleground vehicles (#19183)"
This reverts commit 85af0a0630.
2017-03-31 02:18:46 -03:00
ariel- dafa726773 Core/Scripts: Fix a logic fail that overriden the script of an entity that changed entry
Closes #19389
2017-03-31 01:58:15 -03:00
Gustavo 85af0a0630 Core/Battlegrounds: disable health regen for battleground vehicles (#19183)
Updates issue #950
2017-03-29 11:28:06 +02:00
tkrokli f6f36be004 Scripts: minimize duplicated enum names in header files (#19377)
* Scripts: Minimize duplicated enum names in header files

This reduces the number of cache resets with the Zapcc compiler

- Standard followed is instance/raid TLA + DataTypes/CreaturesIds/etc
- Partial cherry-pick of master commit 7eb4512eee
- Removed unused defines in sunken_temple.h (the core scripts using these have been moved to SAI)
2017-03-29 10:06:06 +02:00
ariel- 83162fafa4 Core/AI: Build fix
- Stop exposing DoublePosition constructor versions, they're only used for internal representation
- Moved IsInBounds function to public scope
2017-03-28 02:41:50 -03:00
ariel- 2f99fa09c9 Core/AI: AreaBoundary refactor
- Added an auxiliary function IsInBounds to base CreatureAI
- Changed container to vector. Set had no sense because we're storing new pointers, they have different addresses even if the boundary is the same
2017-03-28 01:52:49 -03:00
ariel- 66a70088f4 Core/Creature: added CREATURE_FLAG_EXTRA_GHOST_VISIBILITY to allowed db flags_extra mask
- Cleaned up the mask to be a much nicer enum definition
2017-03-27 03:24:37 -03:00
ariel- c8bf1ab5f7 Core/Global: reserve storage for script names vector 2017-03-27 02:59:26 -03:00
xinef1 e72b380b93 Added new creature extra flag which makes npc visible only to dead units
closes #19333

* Rename 9999_99_99_99_world.sql to 2017_99_99_99_world_335.sql

- file affects creature removed in patch 4.0.3a

* Update Creature.cpp
2017-03-27 06:41:53 +02:00
ariel- 8e1e081d6c Core/Scripts: implemented enchant Blade Warding 2017-03-26 14:19:20 -03:00
ariel- 00b547146d Core/Gameobject: remove virtual from GetScriptId, it's not overriden 2017-03-26 13:40:32 -03:00
tkrokli 6e08051825 Game/AI: SMART_ACTION_JUMP_TO_POS should resume path when reached jump location (#19029)
SmartAI NPCs using SMART_ACTION_JUMP_TO_POS
should resume their path when they have reached the jump location.

The changes in this PR makes the action work as intended.

Closes #18760
2017-03-26 18:09:46 +02:00
Aokromes 596320ba15 Typo fix 2017-03-26 14:14:20 +02:00
Aokromes 0999ef0b77 Core/Scripts: Add support for spawn specific C++ scripts
By Krudor
2017-03-26 13:32:28 +02:00
Aokromes 41a7089026 Core/SmartAI: Missing parts on previous commit
By Malcrom
2017-03-26 01:04:35 +01:00
ariel- 01aaafb083 Core/Auras: fix a deleted memory access crash
Closes #19319
2017-03-25 16:26:44 -03:00
ccrs 2b5c765bcd Fix warning
field '_top' will be initialized after field '_owner'
2017-03-25 13:21:01 +01:00
ccrs 9be7f5f57b Core/Movement: 96f4c7c followup 2017-03-25 13:17:29 +01:00
ccrs 96f4c7c187 Core/MotionMaster: cleanup use of _expireList
And restore broken _cleanFlag check/use on update (eca3645d8b)
2017-03-25 12:33:39 +01:00
ccrs bf56049f2f Core/Unit: cleanup UnitState enum 2017-03-25 12:16:13 +01:00
ccrs fce974c3b3 Core/Movement: cleanup MovementGeneratorType 2017-03-25 12:02:25 +01:00
Gustavo 2792046dc7 Core/Scripts: minor fixes in boss_the_lich_king (#19311)
Closes #4427
Closes #7091
2017-03-24 08:59:04 -03:00
ariel- b74cc80859 Core/Scripts: Updated Ulduar instance model
- Codestyle/indent fixes
- Added ObjectData for some GOs
- Added GetUlduarAI to creatures
- Fixed possible out-of-bounds access in boss_razorscale_controllerAI (boss AI number beyond allocated boss size)
2017-03-23 17:15:02 -03:00
Aokromes 986d830ae7 Core/SmartAI: Implement SMART_TARGET_VEHICLE_ACCESSORY
By Malcrom
2017-03-23 03:58:03 +01:00
Chaouki Dhib a1f2f30c14 Core/Spells: fix wrong distance calculations in AoE spells [Needs testing] (#16290)
Core/Spells: Fix wrong distance calculations in AoE spells.
Pull request #16290 by chaodhib.
God bless, finally.
2017-03-23 00:43:04 +01:00
ariel- a88d4e9b00 Core/Misc: remove some weird and unneeded code 2017-03-21 19:21:11 -03:00
S.V eea16ce356 Core/Creatures: Fixed GMs being considered in party/raid with nearby creatures without CREATURE_TYPE_FLAG_TREAT_AS_RAID_UNIT
Ref #19340
2017-03-21 17:27:14 +01:00
Sebastien Levy 0bfa38e9fc Fixed dynamic linking (#19341) 2017-03-21 17:19:17 +01:00
ariel- 8ca1e2d2d0 Core/Misc: fix dynamic linking 2017-03-21 01:47:21 -03:00
ariel- 8be85a5408 Core/Misc: cache server MOTD and properly format it for RA and when issuing .server motd 2017-03-21 00:51:13 -03:00
treeston 2a462e9309 Spell/Aura: Fix handling of max power reducing debuffs when removed. Fixes issues with Reliquary of Souls encounter. 2017-03-20 22:47:41 +01:00
Keader 333a403409 Core/Scripts: Fixed wrong calculation of Aura of Desire
Closes #19322
2017-03-20 16:49:42 -03:00
xinef1 81d011170d Core/Items: Fixed durability problems for wrapped item (#19003) 2017-03-20 18:34:20 +01:00
ariel- 4096b02a56 Core/Spell: fix an issue with vehicle spells changing orientation of base vehicle
Closes #17234
2017-03-20 12:35:09 -03:00
ariel- 6f69f67f78 Core/Scripts: Updated Zul'Aman instance model
- Codestyle/indent fixes
- Use of DoorData and ObjectData
- Added GetZulamanAI for creatures
- Moved bosses to BossAI
2017-03-20 01:04:21 -03:00
ariel- 9cfa7c752e Core/AchievementMgr: fix integer underflow neglecting already completed realm firsts
Closes #19334
2017-03-19 19:33:30 -03:00
ariel- b53d0530cd Core/Entities: don't finalize movesplines before deleting.
- The whole MotionMaster will be destroyed along with the unit, freeing the allocated memory.

Closes #19324
2017-03-19 18:19:14 -03:00
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