Commit Graph

8000 Commits

Author SHA1 Message Date
Trazom62
bdaa101a28 Fix HandleStatModifier for BASE_PCT and TOTAL_PCT modifierType.
Formula was incorrect. It gave a slight advantage when there are several auras for the same UnitMod.
Ex: if you had 2 auras giving 50%,
- previous formula would give: 1*1.5*1.5=2.25
- new formula give: 1+0.5+0.5=2.00 which is correct.

Hack for negative pct <= -100 is also no longer necessary

--HG--
branch : trunk
2010-04-25 15:52:15 +02:00
Trazom62
eccf5bf547 Refactor Creature::SelectNearestTarget(float dist)
This function is used in many scripts to find the nearest enemy within the given distance.
However, it had an implicit limit to the ATTACK_DISTANCE. so in many case the "dist" was in fact just ignored.
In other case, the ATTACK_DISTANCE is required. So 2 functions are necessary to avoid ambiguities.

The refactoring is the split of the function in 2: SelectNearestTarget and SelectNearestTargetInAttackDistance.

--HG--
branch : trunk
2010-04-25 12:59:27 +02:00
Trazom62
b466819333 Fix Taxi flight Stormwind Harbor. Thanks scarymovie87.
Fixes issue #425.

--HG--
branch : trunk
2010-04-25 12:47:15 +02:00
XTZGZoReX
b12e9633cf * Fix structure of SMSG_INSPECT_TALENTS. Patch provided by Elron103.
--HG--
branch : trunk
2010-04-25 00:27:29 +02:00
Spp
a12c0aef85 Fix compile ¬¬
+ Code Style (for, if, while)

--HG--
branch : trunk
2010-04-24 17:48:52 +02:00
Spp
9aa3fea857 Remove unnecesary casts to Player in Player.cpp
Thanks to Shauren for pointing it out

--HG--
branch : trunk
2010-04-24 17:27:09 +02:00
Machiavelli
30c842480c - Fix display of recently earned achievements when the player has a high total of earned achievements.
- Fix crash in compare achievements with players with high GUIDs, by havenard. Fixes issue #1724

--HG--
branch : trunk
2010-04-24 15:08:18 +02:00
raczman
20b79fec28 Don't build jemalloc on mac.
--HG--
branch : trunk
2010-04-24 14:20:28 +02:00
XTZGZoReX
7bd0941607 * Fixed two potential crashes in ChatHandler::HandleChannelSetPublic. Thx Rat/Machiavelli.
--HG--
branch : trunk
2010-04-24 00:43:46 +02:00
p0wer
5435d4f303 Fix spelling error in CONFIG_GM_WHISPERING.
--HG--
branch : trunk
2010-04-23 17:03:03 -05:00
click
f93443b41c *Fixes conflagrate DOT damage so that warlocks finally can be the pyromaniacs they want to be
Closes issue #942
Fix by Liberate

--HG--
branch : trunk
2010-04-23 21:24:32 +02:00
_manuel_
c972765e0a Implemented script for areatriggers 5332,5338,5334 and 5340, related with quest Last Rites.
--HG--
branch : trunk
2010-04-23 16:11:57 -03:00
Machiavelli
c4e4486903 Properly deregister WorldSocket connections in case of reaching socket timeout time.
--HG--
branch : trunk
2010-04-23 12:56:16 +02:00
Trazom62
b142ae155e Fixes GCD when 1 sec or shorter.
Support aura reducing GCD (SPELLMOD_GLOBAL_COOLDOWN) (e.g. Backdraft, Unholy presence).
Fixes issue #1666.
Fixes issue #1616.

--HG--
branch : trunk
2010-04-22 21:28:04 +02:00
Spp
7eac04b5ad Update SpellEntry comments to 3.3.3a
--HG--
branch : trunk
2010-04-22 20:43:19 +02:00
click
f65318eaf3 Revert the override introduced in [7980]
This due to a referencefile not being updated after 3.3.3a changeover (gave bad counting-values when examining DBCs)

--HG--
branch : trunk
2010-04-22 20:36:47 +02:00
Rat
144dbd11dd *fixed crashpoint in spell difficulty handler
*added more checks at loading
*better searcher

--HG--
branch : trunk
2010-04-22 19:39:19 +02:00
teacher
00c2674553 Make Divine Guardian proc on Divine Sacrifice only (by Liberate).
Removed DB data not handled by Core Team. You can find it on Database forums.
Added missing recently committed data to world.sql...
Renamed an old file which had wrong name.

--HG--
branch : trunk
2010-04-22 18:50:14 +02:00
click
ab396beb56 Add support for season-dependant gameevents
Patch by Liberate

--HG--
branch : trunk
2010-04-22 16:22:39 +02:00
click
ca2b52af0d Add 10% healing reduction to PVP-zones (as per 3.3.x patchnotes)
Fix by Havenard - closes #1565

--HG--
branch : trunk
2010-04-22 15:24:30 +02:00
click
b31d567bfd Change visibility of pets or charmed units as well when GM is invisible
Fix by liberate

--HG--
branch : trunk
2010-04-21 23:15:29 +02:00
click
12950d1c16 Update trigger visibility when doing gm on/off
Fix by liberate

--HG--
branch : trunk
2010-04-21 23:14:37 +02:00
click
3a826ecfee Fix Beacon of Light: make it work when casted on other players (no initial aggro on caster)
Fix by Liberate

--HG--
branch : trunk
2010-04-21 22:33:20 +02:00
click
e4164b8c16 Forgot a ; in previous commit - fixed (i need a beer!)
--HG--
branch : trunk
2010-04-21 20:45:36 +02:00
click
63642068b3 Ok, I need to get my glasses....
--HG--
branch : trunk
2010-04-21 20:42:14 +02:00
click
123d40dcfe * Add some more transactioncontrol to pet database handling + adjust character_aura keys to avoid duplicates
--HG--
branch : trunk
2010-04-21 20:34:04 +02:00
click
aaf3a62395 * Fix Death's Choice and Death's Verdict Paragon buffs
Fix by Liberate

--HG--
branch : trunk
2010-04-21 19:55:29 +02:00
thenecromancer
2d994648a1 Don't loose arena points in case of rating lower than 1000 ( don't know if this is season dependant, as it was quite hard to loose that much rating )
--HG--
branch : trunk
2010-04-21 19:08:39 +02:00
thenecromancer
3d52a41e6b Fix Intervene and alikes (unlike spell magnets, intervene alikes are actualy just a single target auras so we need to get caster, not owner)
--HG--
branch : trunk
2010-04-21 19:01:46 +02:00
thenecromancer
3ea6bc08db Fix Critical Block
--HG--
branch : trunk
2010-04-21 18:56:13 +02:00
thenecromancer
4a698f5dd2 Fix typo in one druid talent handling
--HG--
branch : trunk
2010-04-21 18:55:16 +02:00
thenecromancer
4bac471798 PvP duration for Mark of Blood
--HG--
branch : trunk
2010-04-21 18:53:51 +02:00
thenecromancer
b54feffadb Weapon dependant damage for some rogue talents
--HG--
branch : trunk
2010-04-21 18:52:30 +02:00
thenecromancer
7f4e73dbff Fix skirmish battles
--HG--
branch : trunk
2010-04-21 18:49:57 +02:00
Rat
b7a44ae2ba *fix visibility for trigger creatures
NOTE: if you see any trigger (in player mode) with a visible model (DB bug), please report creature entry + modelid in bugtracker

--HG--
branch : trunk
2010-04-21 13:55:43 +02:00
_manuel_
b0daeeb4ab Added missing return;
--HG--
branch : trunk
2010-04-20 22:53:35 -03:00
_manuel_
c1d3c2a31d Implemented npc_locksmith script for npcs 29665,29725,29728. Code from ScriptDev2.
--HG--
branch : trunk
2010-04-20 22:25:26 -03:00
p0wer
232dc7b6f7 Actually make a change in Blade Barrier to fix the crash.
--HG--
branch : trunk
2010-04-20 15:55:20 -05:00
Trazom62
f8cf934775 Fix crash in AchievementCriteriaData::Meets.
Fixes issue #1555.

--HG--
branch : trunk
2010-04-20 21:55:47 +02:00
click
50ac994cf2 Revert changes done in re6b772bbb596137e7f83dabaab46fc501fb6a8f5 - reason: breaks readline-history capability on linux
This is essentially a bug in MySQLs InnoDB database storage engine where connectionhandlers does not decrement the servers threadcount
while trying to exit properly. Bugreport exists on mySQL bugtracker.

--HG--
branch : trunk
2010-04-20 19:51:20 +02:00
raczman
e6fbcc42ce Thanks to Windows file name handling being insane
i need to move file around.
(Protip MS: noone uses PRN anymore)
http://imgur.com/gDgGGh.jpg

--HG--
branch : trunk
rename : dep/include/jemalloc/internal/prn.h => dep/include/jemalloc/internal/totally_not_p_r_n.h
2010-04-20 16:09:31 +02:00
raczman
1532a2f9a2 Use jemalloc as memory allocator on linux.
In comparison to standard glibc allocator,
jemalloc fargments adress space less,
and scales linearly in multithreaded environment.
Author: Jason Evans, mad props to him.

--HG--
branch : trunk
2010-04-20 10:58:41 +02:00
click
b34e2bdb1c Fix spellaura-crash
Fixes #1767, closes #1772 (and the other ones already merged into it)

--HG--
branch : trunk
2010-04-20 03:30:27 +02:00
click
a5500fd7f1 Make ResetPeriodic controllable by boolean value, defaults to false
Fix by Moriquendu

--HG--
branch : trunk
2010-04-20 00:11:03 +02:00
click
e1e7083990 Remove caster from always being part of casters targetlist during spellcasts - thanks to QAston for pointing out that it's useless! :)
--HG--
branch : trunk
2010-04-20 00:02:37 +02:00
p0wer
f23a3adb36 Fix crash involved with DK talent Blade Barrier.
--HG--
branch : trunk
2010-04-19 15:36:17 -05:00
click
b48334c606 Really fix the horseman - shot the horse, gave him a new one - and a proper washover of what he can say!
--HG--
branch : trunk
2010-04-19 21:02:13 +02:00
click
c8184264e1 Unbreak the headless horsman - he should now ride again!
--HG--
branch : trunk
2010-04-19 20:55:16 +02:00
click
ed2e64af4c Add snippet to fix thread-hangs-on-exit on server exit
Closes issue #842

--HG--
branch : trunk
2010-04-19 18:15:41 +02:00
Spp
450c6af43b Code Style: Remove trailing spaces and tab to spaces
--HG--
branch : trunk
2010-04-19 17:13:20 +02:00