Commit Graph
100 Commits
Author SHA1 Message Date
megamage 462a2b9876 Change more ace_guard to trinity_guard 2011-11-08 10:48:49 -05:00
megamage 495ef10b0d Change ObjectAccessor to an ACE_Null_Mutex singleton, since its members have been protected by individual locks.
Also make some of its member functions static.
2011-11-07 09:44:09 -05:00
megamage 809694408a Change ObjectAccessor::i_corpseLock to ACE_RW_Thread_Mutex.
Remove unecessary guard in ObjectAccessor::Update.
2011-11-02 09:39:37 -04:00
megamage e3fa04823d Use TRINITY_GUARD to replace ACE_GUARD. ASSERT(false) if failed to acquire the lock. 2011-10-31 17:25:12 -04:00
megamage 1b8d9ec7b4 Clean up summon/remove gameobject code. 2011-10-31 10:46:39 -04:00
megamage dfeb4a746b Fix a crash caused by spell with CAST_FLAG_RUNE_LIST casted by a creature mover. Thanks to Vasago. 2011-10-31 09:56:04 -04:00
megamage 0ac431f52d Fix a crash caused by spell 49065. Close #3646. 2011-10-24 16:54:52 -04:00
megamage 91f56c181c More cleanup of grid system. 2011-10-22 10:01:29 -04:00
megamage 80a18b9e56 Some cleanup of grid system. 2011-10-22 09:36:05 -04:00
megamage c9c5c2a355 Use read/write thread mx guard instead of general guard for HashMapHolder. 2011-10-21 17:29:09 -04:00
megamage 7231ab959f Clean up grid system. Get rid of GridLoader. This patch should not change any logic, except the incorrect calculation of the number of loaded corpse (which only affects log). 2011-10-18 14:31:34 -04:00
megamage ffdfd9252b More clean up of grid system. 2011-10-18 11:51:30 -04:00
megamage e27ef59548 Clean up grid system: allow directly creating Cell from x, y. 2011-10-18 11:18:49 -04:00
megamage e0d933fed8 Use method IsCoordValid() to replace explicit checks. 2011-10-18 11:05:32 -04:00
megamage c29ff41001 Rename some classes in grid system.
Note: The naming of classes is still confusing. "cell" usually refers to class "Grid", and "grid" usually refers to class "NGrid". But it requires a lot of changes to clean this up.
2011-10-18 10:53:34 -04:00
megamage a56f89ab1b Fix a crashed caused by mob_mistress_of_pain. Fix #3527. 2011-10-16 16:52:06 -04:00
megamage c8251bc619 Remove some "_" from private methods as required by TC standards. Thanks to Shauren for pointing out. 2011-10-13 17:01:55 -04:00
megamage 0e65e94f40 Merge pull request #3467 from Studioworks/master
Core: Style cleanup in boss_illidan.cpp
2011-10-13 13:53:00 -07:00
megamage bcc55489f8 More cleanup of CanSeeOrDetect 2011-10-13 14:02:07 -04:00
megamage 5912e2444d Some cleanup of CanSeeOrDetect code. 2011-10-13 13:26:27 -04:00
megamage dc2bdb8e13 Merge pull request #3445 from Bootz/master
Scriptwork/Clean-up (Av,Brd,Brs)
2011-10-12 12:01:05 -07:00
megamage fd9bab9d89 Add a missing break in AuraEffect::CalculateSpellMod. Thanks to vlad852 for pointing out. 2011-10-12 14:48:22 -04:00
megamage 481d16af13 Merge pull request #3430 from Havenard/fix0007
Scripts/ICC: Fix Shadow Prison
2011-10-12 08:45:14 -07:00
megamage 0184720df6 Merge pull request #3444 from Havenard/fix0008
Fix Elemental Oath
2011-10-12 08:44:47 -07:00
megamage d2e8237d23 Merge pull request #3469 from Chaplain/cleanup3
Core/Spells: SPELL_AURA_MOD_INCREASE_ENERGY_PERCENT improvement
2011-10-12 08:39:45 -07:00
megamage 69414ed065 Add MX lock to InstanceSave::Add/RemovePlayer. Because BindToInstance can be called within Player::Update.
Try to fix crashes #2514 and #2177. May also fix #3466, #2862 and #2239.
2011-10-12 11:36:03 -04:00
megamage 44c55f78e0 Fix crash caused by FlameLeviathanPursuedTargetSelector 2011-10-11 17:19:57 -04:00
megamage 11bb9bfdb3 Fix compile error in gcc. 2011-10-11 08:56:44 -04:00
megamage edc46d5606 Fix a crash caused by my previous commit. 2011-10-11 08:47:36 -04:00
megamage 8ce5177f74 Pass low guid instead of guid to DeleteCharaceterNameData.
Thanks to Studioworks for pointing out.
2011-10-10 18:03:19 -04:00
megamage 3569121d80 Remove/Add creature from/to map when it changes map.
Note: creatures was never supposed to change map, but now the core allows them to move with transports...
2011-10-10 17:59:52 -04:00
megamage 3ba22d0d06 Rename Map::Add to Map::AddToMap, Map::Remove to Map::RemoveFromMap for better management. 2011-10-10 17:39:34 -04:00
megamage d156e066cf Rename "SetPosition" to "UpdatePosition".
Replace CreatureRelocation in scripts with new Creature::SetPosition.
2011-10-10 17:08:01 -04:00
megamage 76c9c30c2b Merge pull request #3399 from megamage/master
Fix the relocation of creatures across cells. Try to fix #3054.
2011-10-10 13:12:15 -07:00
megamage 00f5366029 Fix the bug that CC AOE spells do not remove stealth aura if the target is behind the caster. 2011-10-10 12:56:14 -04:00
megamage 765a6f2e19 Remove duplicated code for SendNameQueryOpcode 2011-10-10 12:47:33 -04:00
megamage f9fc12650b Merge pull request #3259 from Souler/pull
Traps and Basic Campfire ignoring unattackable flags.
2011-10-08 13:36:05 -07:00
megamage 45de1f01e0 Update char name data when create/delete char. 2011-10-08 16:24:07 -04:00
megamage 0bb86a3e97 Update code related to character name data.
Note: need to add/delete data when character is created/deleted.
2011-10-08 16:09:12 -04:00
megamage 679802ecf4 Merge pull request #3400 from Bootz/master
REPO: Code-Style fixes... (Part duece)
2011-10-07 17:56:47 -07:00
megamage 1e44044a8f Merge pull request #3281 from n4ndo/master
Fix Crash in ProcessQueryCallbacks
2011-10-07 15:19:21 -07:00
megamage 341d22ff91 Fix incorrect logic in Unit::IsNonMeleeSpellCasted
Author: kerhong
2011-10-07 18:16:32 -04:00
megamage 24b5ec1e39 Fix the broken logic in NearestHostileUnitInAttackDistanceCheck 2011-10-07 18:11:24 -04:00
megamage 8c9bd67fe9 Fix crash #3274 in Unit::HandleDummyAuraProc 2011-10-07 18:06:33 -04:00
megamage 47994f82d7 Fix crash #3306 in Unit::HandleDummyAuraProc 2011-10-07 18:01:41 -04:00
megamage ba8cade780 Fix crash #3297 in Unit::HandleDummyAuraProc 2011-10-07 17:58:23 -04:00
megamage eb8cbae0d5 Fix the relocation of creatures across cells. Try to fix #3054. 2011-10-07 17:36:23 -04:00
megamage a85b1decb0 Merge pull request #3395 from megamage/master
Fix a crash caused by SetupBattleground when m_Map is not created.
2011-10-07 14:27:52 -07:00
megamage 381cf2f9d3 Fix a crash caused by SetupBattleground when m_Map is not created. 2011-10-07 13:21:01 -04:00
megamage 42d1562183 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore.git
Conflicts:
	src/server/game/Entities/Player/Player.cpp
2011-10-07 12:48:20 -04:00
megamage 7f4be7e93a Fix a crash caused by items with 0 price. 2011-10-03 08:43:21 -04:00
megamage 2730d51266 Fix possible total price overflow when buying items. Fix #3137.
Thanks to BroodWyrm for finding out the problem.
2011-09-28 16:03:46 -04:00
megamage eb946691c7 Unlink Battleground and BattlegroundMap when one of them is deleted. Fix crash #3239. 2011-09-27 17:26:13 -04:00
megamage 780747f5d3 Missing part of the previous commit. 2011-09-26 09:14:12 -04:00
megamage a35deba186 Fix some crashes caused by spell scripts without checking unit type. Fix #3216 and #3217. 2011-09-26 09:03:33 -04:00
megamage 738f94eed3 Fix incorrect logic in PetAI. Solve #3155. 2011-09-21 12:53:29 -04:00
megamage 4ccb22e1a6 Fix the incorrect logic of threat online status check. Also add targets in other map or phase to offline container. 2011-09-20 10:26:34 -04:00
megamage 8aead2a1ee Do not add spell-caused threat to creatures in other map or phase. Fix crashes #2396 and #2992.
Note: Threat system is still thread-unsafe. This patch only reduces the chance of crash.
2011-09-20 10:24:44 -04:00
megamage e81b3c6fde Move thread-unsafe events from Player to BattlegroundQueue. Fix crash #2960. 2011-09-19 17:22:27 -04:00
megamage c9a4efdf8f Fix crash caused by invalid talker in SmartScript. Solve #3082. 2011-09-19 09:24:59 -04:00
megamage bd4cf4b78b Store pendingInstanceId instead of pointer of instance save, because pointer may become invalid. Fix #2987. 2011-09-15 22:04:51 +02:00
megamage 76488854d8 A more conservative way to fix crash #2892. 2011-09-13 11:54:55 -04:00
megamage 937d26e0fe Temp fix of crash caused by npc_brunnhildar_prisoner script. Solve #2825, #2880 and #2772. 2011-09-12 13:00:01 -04:00
Unknown e39e6da4fb DB/NPC: Aura and template update for 28239 (in Oculus).
Closes #454
2011-09-11 19:08:49 +01:00
Svannon 18134bc016 DB/Gossip: Add Missing Options to Exodar Paladin Trainer
fixes 1210
2011-05-14 22:26:36 +02:00
Vinolentus 4c23c590da Core/Player: Correct bug with displaying reputation on new characters
Signed-off-by: Machiavelli <[email protected]>
2011-04-20 08:22:50 +02:00
Svannon b1077eb255 DB/Creatures: Obsidian Sanctum _template updates
fixes #1239
2011-04-17 19:55:03 +02:00
Svannon cb6162694f DB/Spawns: Crystal Web Cavern & Garm Cavern By K3 2011-04-17 18:58:17 +02:00
Svannon 918bb4ff20 DB/Spawns: Boneguard Lieutenant spawns
fixes #1209
2011-04-17 18:53:23 +02:00
drahy ce1224239d Core/Arena: Arena team member saving fixed
fixes #1214
2011-04-13 14:37:55 +02:00
mark07 75a280e703 DB/Achievements: Fix Subtraction Achievement
fixes #1198
2011-04-11 20:48:04 +02:00
Malcrom 46849c52e5 DB/SAI: Convert some Gossip_scripts to SAI 2011-04-09 09:53:06 +02:00
Lynx3d & Ambal 347098af14 Core/Vmaps: Made code more safe and fixed problems in WmoLiquid::GetLiquidHeight() 2011-04-02 20:36:27 +02:00
Nay & Kaelima 21818fb760 Scripts/Zalazane's Fall: Implement Zalazane's Fall game event.
Note: Last quest/battle will be add soon
2011-03-27 23:52:51 +01:00
Nay 96a7d6aa9d DB/Quests: Battle to Undercity should be turned in to Bragor Bloodfirst
fixes #700
2011-03-23 10:12:19 +01:00
Nay 46f1fa17a9 DB/Quests: fix Vile Familiars, Burning Blade Medallion and Report to Sen'jin Village required races
fixes #701
2011-03-23 10:09:17 +01:00
Nay e20bc707ba DB/Event: Remove wrongly assigned season linked events. 2011-03-23 10:04:26 +01:00
svannon e5f551bb3c DB/Spawns: Argent Crusaders and Rampaging Geist in Zul'Drak
fixes #870
2011-03-23 10:02:29 +01:00
Nay 057d4ce3c2 DB/Creature: fix wrong spawns in Thunder Bluff when WsG call to arms is up
fixes #904
2011-03-23 09:52:16 +01:00
Nay e080424be4 DB/Templates: Template updates for creature 33778 (Tournament Hippogryph) 2011-03-23 09:40:05 +01:00
Nay 08448100a9 DB/Templates: Template updates for NPCs and gameobjects in Halls of Reflection
fixes #722
2011-03-23 09:33:00 +01:00
ZxBiohazardZx 27e0e28de5 DB/Conditions: Only use Insult on Bjorn Halgurdsson
fixes #827
2011-03-23 09:28:44 +01:00
Malcrom f75e924d22 DB/SAI: Stormfleet Deckhand SAI
also fixed file naming typo
2011-03-22 08:23:36 +01:00
Malcrom 2ffb8d02fd DB/SAI: High Priest Talet-Kha SAI 2011-03-22 08:20:48 +01:00
Malcrom 0f1d5f63ec DB/SAI: Necro Overlord Mezhen SAI 2011-03-22 08:17:41 +01:00
mrquickfx f4b202e494 DB/Creature: Rotting Frost Giant spawn for 25 man instances
fixes #797
2011-03-21 22:16:58 +01:00
Malcrom f1b1692d64 DB/SAI: Fixed Lost Drakkari Spirit SAI causing startup errors 2011-03-21 10:31:31 +01:00
SnakeIce fa8b30a45c Scripts/Pit of Saron: Fixed spawning quest creatures in Pit of Saron
DB/Quests: Fixed quest "The Path to the Citadel"
SQL credits - Tome
2011-03-18 15:35:16 +01:00
Malcrom 0e728f2cc3 DB/SAI: Nethermine Burster SAI 2011-03-17 11:52:35 +01:00
Malcrom 1388ec5021 DB/SAI: Zul'Drak Gateway Trigger SAI 2011-03-17 11:50:24 +01:00
Malcrom 9e70b75a7a DB/SAI: High Priest Andorath SAI 2011-03-17 11:49:13 +01:00
Malcrom 79357804fd DB/SAI: Fel Cannon MKI SAI
DB/SAI: Correct 2011_03_17_4 error
2011-03-17 11:45:20 +01:00
Malcrom 2e08d87be5 DB/SAI: Legion Fel Cannon SAI 2011-03-17 11:38:01 +01:00
Malcrom af8ef7c3c4 DB/SAI: Frozen Earth SAI 2011-03-17 11:36:12 +01:00
Malcrom b025f7c731 DB/SAI: Lost Drakkari Spirit SAI 2011-03-17 11:34:31 +01:00
Malcrom f3e974bbe4 DB/Creatures: some fixes to Blade's Edge Triggers 2011-03-17 11:32:21 +01:00
Malcrom bfaa945176 DB/SAI: Pathing for Fizzcrank Airman 2011-03-17 11:30:04 +01:00
Malcrom 88330e72b3 DB/SAI: Pathing for Darkfallen Deathblade 2011-03-17 11:29:03 +01:00
Malcrom 4153283e28 DB/SAI: Pathing for En'kilah Crypt Fiends 2011-03-17 11:27:31 +01:00
Koord 6595364227 Core/Spells: Small cleanup of SpellMgr 2011-03-14 08:25:27 -06:00