Commit Graph
100 Commits
Author SHA1 Message Date
QAston 58383311a6 Fixes issue #476. Remove owned auras in addition to applied auras on unit death.
--HG--
branch : trunk
2010-01-24 13:23:34 +01:00
QAston d1a40eb688 *Do not keep area aura targets in combat with aura owner
*Add some safety checks to area aura target map update.

--HG--
branch : trunk
2010-01-24 13:08:25 +01:00
Rat 79accd730e *removed no more needed extern keywords from ScriptLoader
--HG--
branch : trunk
2010-01-24 11:56:33 +01:00
Rat f10cb92298 *merge ScriptMgr::LoadOverridenDBCData to SpellMgrLoadSpellCustomAttr, patch by Azuritus, closes issue #444
--HG--
branch : trunk
2010-01-24 11:45:50 +01:00
XTZGZoReX 9f00ca3eb8 * Remove CellLock class and all cell-level thread locking.
** It was wasting CPU power as cell-level locking is not needed.
** Our multithreading is on map-level, not cell-level.
** CellLock was just a 'proxy' between Cell and CellPair and in some cases carried redundant data.
** Some minor cleanup in Cell::Visit/Map::Visit.

--HG--
branch : trunk
2010-01-23 22:24:41 +01:00
XTZGZoReX fe07518baf * Partly revert [7173]. The log call is useful - "CRASH ALERT" part removed.
--HG--
branch : trunk
2010-01-23 20:08:44 +01:00
arcanzic 35e7a65c3c Merge...
--HG--
branch : trunk
2010-01-23 13:01:54 -06:00
arcanzic c827f58d93 Remove useless spam at core boot. I have never seen, nor heard of a script not assigned to a npc, crashing the core.
--HG--
branch : trunk
2010-01-23 13:00:06 -06:00
XTZGZoReX 6e3127bbe5 * Fix CRLF.
--HG--
branch : trunk
2010-01-23 20:00:01 +01:00
Trazom62 171e7b70a5 Fix some crashes linked to gurgthock summon
Fixes issue #440.
Fixes issue #441.

--HG--
branch : trunk
2010-01-23 18:48:06 +01:00
thenecromancer fd5390c4c1 Merge
--HG--
branch : trunk
2010-01-23 17:47:18 +01:00
thenecromancer b2bb515c22 table create for previous commit
--HG--
branch : trunk
2010-01-23 17:46:03 +01:00
Trazom62 2b4a229934 Fix Script Naxxramass/Anub'Rekhan. Thanks scarymovie87.
Fixes issue #141.
Fixes issue #305.

- Fix some timers
- Implements Berserk ability after 10 minutes
- Fixed spawning method for Crypt Guardians
- Fix spawn of Corpse Scarabs on player or crypt guardian death.
- code cleanup

--HG--
branch : trunk
2010-01-23 17:34:18 +01:00
thenecromancer d32e0878c7 Remove Battle Shout/Blessing of Might hack
Add table holding stacking masks for non-target/caster related stacking rules
Aura bounce check is still to be done

--HG--
branch : trunk
2010-01-23 17:05:20 +01:00
thenecromancer caf3505f75 Fix Unrelenting Assault applying debuff to non-player target
--HG--
branch : trunk
2010-01-23 16:37:06 +01:00
thenecromancer 1f602fae47 Apply SPELLMOD_COST in takeRunePower() ( replacement for removed hack in previous commit )
--HG--
branch : trunk
2010-01-23 16:19:23 +01:00
thenecromancer 9a236d18ff Merge
--HG--
branch : trunk
2010-01-23 16:06:23 +01:00
thenecromancer e893ad71cf Fix Empowered Rune Weapon
Cleanup cast flags

--HG--
branch : trunk
2010-01-23 16:06:06 +01:00
Anubisss 340ded3973 Fix compile in WIN.
--HG--
branch : trunk
2010-01-23 16:00:05 +01:00
thenecromancer 84980ea77c Apply armor reduction for physical attacks before other calculations ( for correct block amount and etc..)
--HG--
branch : trunk
2010-01-23 15:44:28 +01:00
thenecromancer 39ba392c75 Merge
--HG--
branch : trunk
2010-01-23 15:05:33 +01:00
Anubisss d9cb070215 Implement QueryResult_AutoPtr type which is ACE's reference counted auto_ptr(ACE_Refcounted_Auto_Ptr) for QueryResult pointers.
Use this auto_ptr for every DB queries(except QueryNamedResult yet).

This patch guarantees NO memory leaks from QueryResult pointers.

Thanks to raczman for the idea and for the helping to make this patch.

--HG--
branch : trunk
2010-01-23 14:45:58 +01:00
Trazom62 c784110d87 Fix Crash in boss_gluthAI::UpdateAI.
Fixes issue #442.
Thanks JuliuSZS for pre-diagnose

--HG--
branch : trunk
2010-01-23 11:52:45 +01:00
QAston d9b38250ff *Remove Death runes from Reaping/Blood of the North/Death Rune Mastery when talent aura is removed.
--HG--
branch : trunk
2010-01-23 10:33:16 +01:00
QAston 216d32e8a7 *Prevent assertion fail in Unit::_AddAura after creature add to remove list.
--HG--
branch : trunk
2010-01-22 20:03:47 +01:00
Trazom62 7b3691ac9e Fix irand(min,max) usage (min shall always be lower than max)
--HG--
branch : trunk
2010-01-22 18:38:33 +01:00
QAston c1aa60aaab *Run grid searches for area auras every 500ms instead of every unit update
*Fix a stupid typo which caused memory leak in Unit::RemoveOwnedAura

--HG--
branch : trunk
2010-01-22 18:06:01 +01:00
Rat b4a6fd1a81 Merge
--HG--
branch : trunk
2010-01-22 00:06:35 +01:00
Rat f221f5911a *update eventAI docs
*add missed docs

--HG--
branch : trunk
2010-01-22 00:04:50 +01:00
Trazom62 2a261b44e1 Fix EffectSendEvent to work if target is GO or Unit.
--HG--
branch : trunk
2010-01-21 23:57:14 +01:00
Trazom62 54458c0f13 Fix Script Naxxramass Thaddius/Stalagg/Feugen
- Stalagg and Feugen respawn if the other adds not dead within 5 sec.
- Thaddius start combat timers as soon as both are killed.
- Fix Thaddius flags after a crash
- Fix global variables used for adds alive flag.

--HG--
branch : trunk
2010-01-21 20:37:02 +01:00
thenecromancer 76102c1cdd Change temp threat aura mods to use temp threat modifier instead of "asisting" it's threat value over all references.
--HG--
branch : trunk
2010-01-21 16:25:09 +01:00
thenecromancer 3b29a4e6f4 Do not apply SPELL_AURA_MOD_THREAT to negative threat changes (Eg. let Feint and alikes apply full effect)
--HG--
branch : trunk
2010-01-21 15:51:11 +01:00
thenecromancer 0f531f75ff Send all 24 bits of spell Id for vehicle spell actions
--HG--
branch : trunk
2010-01-21 15:33:43 +01:00
XTZGZoReX 1c310c887b So much for my fix-without-compile skills. :(
(inb4 scores)

--HG--
branch : trunk
2010-01-21 11:21:47 +01:00
XTZGZoReX 73719d3e76 * Removed unnecessary query.
--HG--
branch : trunk
2010-01-21 10:42:46 +01:00
Xanadu e21081172c Removed the Debug_NoPCH config from Windows build.
--HG--
branch : trunk
2010-01-21 03:23:43 +01:00
Xanadu 01bb79cc7d Fix SPELLMOD_PCT spell mods to stack in a truly multiplicative way
--HG--
branch : trunk
2010-01-21 02:02:35 +01:00
Xanadu 9e91fc997c Fix build.
--HG--
branch : trunk
2010-01-21 01:28:18 +01:00
Anubisss 8154831335 Merge.
--HG--
branch : trunk
2010-01-20 21:16:28 +01:00
Anubisss 6855787a83 Fix a memory leak in AddonMgr::LoadFromDB(). This not leaks _yet_ because that function not used anywhere(if my eyez are right) but in the future can leaks.
--HG--
branch : trunk
2010-01-20 21:15:42 +01:00
thenecromancer fbe09a92f9 Allow spells with effect mechanic to allow apply other effects when effect with mechanic would be fail due to effect/state immunity.
--HG--
branch : trunk
2010-01-20 21:10:18 +01:00
thenecromancer 721c926229 Change GetSpellSpecific() to have SpellEntry argument instead of ID, this saves lookups in spellstore for entries we already have.
--HG--
branch : trunk
2010-01-20 20:54:32 +01:00
thenecromancer bfad15470f Fix pass/need opcode
--HG--
branch : trunk
2010-01-20 20:42:54 +01:00
thenecromancer e350775de7 Change MOVE_RUN_BACK speed to match retail data
--HG--
branch : trunk
2010-01-20 20:42:03 +01:00
Trazom62 2fa32f577a Fix Script Naxxramass/Loatheb: timers updates. Thanks scarymovie87.
Fixes issue #183.

--HG--
branch : trunk
2010-01-20 20:01:16 +01:00
Trazom62 aed408cbb6 Fix .account password command that failed when username not in upppercase in DB
--HG--
branch : trunk
2010-01-20 19:57:58 +01:00
Trazom62 72a2f50513 Fix .server shutdown command
--HG--
branch : trunk
2010-01-20 19:52:27 +01:00
XTZGZoReX 48b085124e * Add basic AddonMgr.
* All this really does at the moment is save addon names + CRCs to DB for use for.. whatever, later.

--HG--
branch : trunk
2010-01-20 16:24:52 +01:00
Spp 91c174075d closes #245 - GMs will resurrect with full health
--HG--
branch : trunk
2010-01-20 15:43:16 +01:00
Spp 30760e9921 Fix windows compile
--HG--
branch : trunk
2010-01-20 15:36:23 +01:00
Spp ee4c113920 fix HandleAreaSpiritHealerQueryOpcode and HandleAreaSpiritHealerQueueOpcode broken in f0632b948d
--HG--
branch : trunk
2010-01-20 14:56:33 +01:00
silver1ce 7ce1c094c0 Fixes #420 fixed out-of-range group member's position update, which broken after 7014f421c8
--HG--
branch : trunk
2010-01-20 15:05:58 +02:00
QAston 6e76e67253 *Fix petAi::Update crash.
--HG--
branch : trunk
2010-01-19 22:15:04 +01:00
QAston 7ef6842cf3 *Fix a memory leak with auras for cases when there are some spells casted on unit during remove from world - all thanks go to debug assert fails, which you all love so much.
--HG--
branch : trunk
2010-01-19 21:33:35 +01:00
Rat 41bff63fe7 *added placeholders for SmartAI
--HG--
branch : trunk
2010-01-19 16:41:31 +01:00
Rat f36438af6a *Update Copyright times
--HG--
branch : trunk
2010-01-19 16:37:49 +01:00
Rat 14805ff0b4 *small visual fix for Valkyer Battle Maidens
--HG--
branch : trunk
2010-01-19 15:56:30 +01:00
Rat ac6ef84ac4 *cleanup #1 after script merge
--HG--
branch : trunk
2010-01-19 15:55:31 +01:00
Rat 9a6e246e40 *fix debug build for 64bit
*fix release build for 32bit
*fix release build for 64bit

--HG--
branch : trunk
2010-01-19 14:07:38 +01:00
Rat 727fbbef07 *fix event reset bug for quest The Light of Dawn, Fixes issue #108.
--HG--
branch : trunk
2010-01-19 12:07:51 +01:00
Rat 0cc053ea4d *Integrate Script system to Core
-added ScriptMgr for loading scripts
-removed bindings
-moved script system to src/game
-moved scripts to src/scripts
-VC project files updated
-cmakes updated (not 100% done yet)

NOTE to Devs:
-file locations changed
-precompiled renamed to ScriptedPch
-ecsort_ai renamed to ScriptedEscortAI
-follower_ai renamed to ScriptedFollowerAI
-guard_ai renamed to ScriptedGuardAI
-simple_ai renamed to ScriptedSimpleAI
-sc_creature renamed to ScriptedCreature
-sc_gossip renamed to ScriptedGossip
-sc_instance  renamed to ScriptedInstance

*use the new headers in scripts, thank you

NOTE to ALL:
cmake not fully tested, please report any errors with it
could make creashes, incompability
USE AT YOUR OWN RISK before further tests!!

--HG--
branch : trunk
2010-01-19 11:36:05 +01:00
QAston f5dea61b66 *Remove some of no longer needed debug code.
--HG--
branch : trunk
2010-01-18 23:47:26 +01:00
Trazom62 1c5060f455 Fix crash in OutdoorPvPWG::UpdateQuestGiverPosition
Fixes issue #342.

--HG--
branch : trunk
2010-01-18 23:45:08 +01:00
QAston a1bbbd1421 *Cleanups before delete after not successfull load pet from db. Thanks to Drahy for debug traces.
--HG--
branch : trunk
2010-01-18 23:12:35 +01:00
silver1ce c7c3b0edb0 typo
--HG--
branch : trunk
2010-01-18 21:56:15 +02:00
silver1ce cfca61b176 Auras with turn/move interrupt flags are now removed for creatures when they turn/move, cleanup
--HG--
branch : trunk
2010-01-18 21:51:45 +02:00
Trazom62 f920a3c57b Fix Vaelastrasz not giving quest.
--HG--
branch : trunk
2010-01-18 20:34:44 +01:00
QAston f03a2a60e7 *Use std::map instead of UNORDERED_MAP for storing aura applications of an aura.
--HG--
branch : trunk
2010-01-18 20:15:23 +01:00
Trazom62 17d407f347 merge
--HG--
branch : trunk
2010-01-18 18:55:40 +01:00
Trazom62 faf845b6f2 Fix Script Naxxramas/Gothik
- fix spell of adds
- fix wave schedule to use correct entry

--HG--
branch : trunk
2010-01-18 18:48:05 +01:00
QAston 9a7746c9fc *Add some debug info to trac reason of assertion fail in Unit destructor.
--HG--
branch : trunk
2010-01-18 18:42:36 +01:00
_manuel_ 844c09fc61 Corrected issues with stacks, thanks to QAston.
--HG--
branch : trunk
2010-01-18 14:09:13 -03:00
_manuel_ 1c9f2186ab Implemented script for item Petrov's Cluster Bombs, code from ScriptDev2.
--HG--
branch : trunk
2010-01-18 14:07:59 -03:00
teacher 8dc9140e1c FIx sql naming and some small sql cosmetics.
--HG--
branch : trunk
2010-01-18 17:28:48 +01:00
Spp d4ca8f6eee Backout 8f186e3cc3 (Remove unnecesary checks)
--HG--
branch : trunk
2010-01-18 17:18:15 +01:00
_manuel_ 06e776b8d8 Gnomeregan: Now instance saves the event.
--HG--
branch : trunk
2010-01-18 13:02:24 -03:00
XTZGZoReX 2b5f1f359b * Fix typo breaking Linux build...
--HG--
branch : trunk
2010-01-17 12:10:34 +01:00
XTZGZoReX 704e0e3361 * Really revert commit fced5e40fa1e - don't ask me why, but hg is not being very co-operative.
--HG--
branch : trunk
2010-01-17 11:51:14 +01:00
XTZGZoReX 15025253c7 * Fix CRLF...
--HG--
branch : trunk
2010-01-17 11:26:22 +01:00
Trazom62 c4eb172d04 Fix Script Naxxramas/Gothik with help of scarymovie87
Fixes issue #80.

- Implement support for "merging" life and dead side after ~2 minutes, if group is not splitted
- Implement support for opening central gate at 30% boss health
- Implement Gothik teleport between side when above 30% boss health
- Fix dead-side mobs spawn in 25-Man difficulty
- Fix waves setup.
- Fix some timers (this may still need some tuning).
- Fix sporadic combat reset when Gothic teleport to ground.

--HG--
branch : trunk
2010-01-17 10:58:11 +01:00
n0n4m3 782fa95f1f Fixed crash in Wintergrasp when send incorrect GetArea flag and coordinats
--HG--
branch : trunk
2010-01-17 08:32:48 +03:00
_manuel_ 054db2fa5c Blessing of Might and Battle Shout can't be at the same time, fixed by naitsabes.s and me. Thanks to QAston and thenecromancer.
--HG--
branch : trunk
2010-01-17 01:53:28 -03:00
Anubisss 7e183d6b2f Fix a mem leak in OutdoorPvPMgr's destructor.
log:

==12080== 1,680 (168 direct, 1,512 indirect) bytes in 1 blocks are definitely lost in loss record 106 of 253
==12080==    at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230)
==12080==    by 0xA63AE9: OutdoorPvPMgr::InitOutdoorPvP() (OutdoorPvPMgr.cpp:51)
==12080==    by 0xC01BDA: World::SetInitialWorldSettings() (World.cpp:1650)
==12080==    by 0x808EF6: Master::Run() (Master.cpp:235)
==12080==    by 0x8083B5: main (Main.cpp:154)

--HG--
branch : trunk
2010-01-16 20:28:32 +01:00
n0n4m3 99f66a6bc9 Updated copyright for new year.
--HG--
branch : trunk
2010-01-16 20:19:18 +03:00
n0n4m3 147d9dd3dd Avoid send reset warning to map/difficulty cases without fixedreset time, by VladimirMangos.
--HG--
branch : trunk
2010-01-16 19:54:57 +03:00
n0n4m3 720318e856 Implement option to use delay in ForcedDespawn for creature, allow use delayed forced despawn also in EAI, by NoFantasy.
--HG--
branch : trunk
2010-01-16 19:51:59 +03:00
n0n4m3 a29727e423 Fixed problem with not setAchievementCriteriaDataSet::criteria_id, Add achievement creteria requirements forACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET*, by GriffonHeart.
--HG--
branch : trunk
2010-01-16 19:41:04 +03:00
n0n4m3 1557f9db9b Prevent crash after .goname/namego teleports at same bg/arena, by mns.
--HG--
branch : trunk
2010-01-16 19:38:19 +03:00
n0n4m3 c9a3698a11 Implement speed reduction at creatures DoFleeToGetAssistance, by NoFantasy.
--HG--
branch : trunk
2010-01-16 19:35:30 +03:00
n0n4m3 ec10853f22 Update formula for GameObject 'autoclose' time (dataN-field in_template), by NoFantasy.
--HG--
branch : trunk
2010-01-16 19:31:49 +03:00
n0n4m3 ed5152316f Rewrite parts of GameObject use for GO type 10, by NoFantasy.
--HG--
branch : trunk
2010-01-16 19:31:10 +03:00
n0n4m3 7be4b2a85c Fixed unread packet tail spam for CMSG_LEAVE_BATTLEFIELD, by VladimirMangos.
--HG--
branch : trunk
2010-01-16 19:28:36 +03:00
n0n4m3 585f4317c1 Auto-leave player at login back to bg/arena when bg/arena finished. by VladimirMangos.
--HG--
branch : trunk
2010-01-16 19:27:15 +03:00
n0n4m3 15dc23ad45 Fixed item dupe and apply enchantment while disarm state original patch by zhenya.
--HG--
branch : trunk
2010-01-16 19:21:07 +03:00
n0n4m3 9be16cf605 Some replacements .count to .find for better performance - original patch by zhenya.
--HG--
branch : trunk
2010-01-16 19:18:53 +03:00
n0n4m3 706718b28c Fixed some problems with pets, port from tc1, by krz, thx Frankir.
--HG--
branch : trunk
2010-01-16 19:11:32 +03:00
n0n4m3 e031df23fc Propertly update combat ratings fields, by VladimirMangos.
--HG--
branch : trunk
2010-01-16 19:05:27 +03:00
n0n4m3 e21e0ce95b Fixed wrong duration for Dancing Rune Weapon, removed in 3.2.x, thx QiSoft.
--HG--
branch : trunk
2010-01-16 19:02:26 +03:00
n0n4m3 b9c09071b0 Fixed Lifebloom final crit, by PrinceCreed.
--HG--
branch : trunk
2010-01-16 18:47:40 +03:00