aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
AgeCommit message (Collapse)Author
2010-05-04Unstable Affliction: Fix caster, bonus and penalty damageSpp
Original Patch by N4rk0 Closes issue 739 --HG-- branch : trunk
2010-05-01Fix more warnings.Spp
--HG-- branch : trunk
2010-04-30Fix crash when summoning minions (introduced in vanitypet-fix)click
--HG-- branch : trunk
2010-04-29* Properly dismiss vanitypets (implements use of CMSG_DISMISS_CRITTER)click
Some small code cleanups --HG-- branch : trunk
2010-04-29*implemented 'empty' VehicleAIRat
NOTE: VehicleAI::UpdateAI runs even while the vehicle is mounted! --HG-- branch : trunk
2010-04-25Fix resilience update for 3.3.x. Thanks dr.tenma.Trazom62
Fixes issue #198. --HG-- branch : trunk
2010-04-25Fix HandleStatModifier for BASE_PCT and TOTAL_PCT modifierType.Trazom62
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-25Refactor Creature::SelectNearestTarget(float dist)Trazom62
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-24Fix compile ¬¬Spp
+ Code Style (for, if, while) --HG-- branch : trunk
2010-04-21Fix Intervene and alikes (unlike spell magnets, intervene alikes are actualy ↵thenecromancer
just a single target auras so we need to get caster, not owner) --HG-- branch : trunk
2010-04-21Fix Critical Blockthenecromancer
--HG-- branch : trunk
2010-04-20Actually make a change in Blade Barrier to fix the crash.p0wer
--HG-- branch : trunk
2010-04-20Make ResetPeriodic controllable by boolean value, defaults to falseclick
Fix by Moriquendu --HG-- branch : trunk
2010-04-19Fix crash involved with DK talent Blade Barrier.p0wer
--HG-- branch : trunk
2010-04-19More warning removal (Some code modifications and cleanup when needed)Spp
--HG-- branch : trunk
2010-04-19Unit: Fix Unit Flight UpdateSpeed not getting charmer bonusesSpp
--HG-- branch : trunk
2010-04-19Remove LOTS of compile warningsSpp
--HG-- branch : trunk
2010-04-15Fix Threat of Thassarian. Thanks Azuritus.Trazom62
Fixes issue #1657. --HG-- branch : trunk
2010-04-12Fix Glyph of Polymorph. Thanks Proof.Trazom62
See issue #1322. --HG-- branch : trunk
2010-04-12* Fix: correct dancing rune blade damage output - patch by tbaartclick
Fixes issue #1354 Fixes issue #1479 --HG-- branch : trunk
2010-04-11Tab to Spaces and remove of trailing spacesSpp
--HG-- branch : trunk
2010-04-11Update code for 44394 and ranks. by Vladimir.n0n4m3
--HG-- branch : trunk
2010-04-11Final fix basepoints calculation, thx to Vladimir, Laise.n0n4m3
--HG-- branch : trunk
2010-04-11Some fixes for quests/basePoints calculation, realm server.n0n4m3
--HG-- branch : trunk
2010-04-11Fix mail, professions, group loot, console spam, and some fixes. Big thx to ↵n0n4m3
TOM_RUS. --HG-- branch : trunk
2010-04-11Fix Auth on server also some fixes and cleanups. Big thx to TOM_RUS.n0n4m3
--HG-- branch : trunk
2010-04-10Fix vehicle stacking (no more pyramids for you!)click
--HG-- branch : trunk
2010-04-08Code Style (game + scripts only):Spp
"!=" --> " != " (when needed) " !=" --> " !=" "!= " --> "!= " --HG-- branch : trunk
2010-04-07Code Style (game + scripts only):Spp
">=" --> " >= " (when needed) " >=" --> " >=" ">= " --> ">= " "<=" --> " <= " (when needed) " <=" --> " <=" "<= " --> "<= " " ==" --> " ==" "== " --> "== " --HG-- branch : trunk
2010-04-07Code Style (game + scripts only):Spp
"==" --> " == " (when needed) --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"( " --> "(" " )" --> ")" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"if(" --> "if (" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"while(" --> "while (" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"for(" --> "for (" --HG-- branch : trunk
2010-04-07Code Style: Remove trailing spacesSpp
--HG-- branch : trunk
2010-04-07Code Style: tab to spacesSpp
--HG-- branch : trunk
2010-04-05Always add CC unit state to allow restoring CC effects if one expires (stun ↵thenecromancer
in case of root/confuse, and fear in case of everything else) Fixes issue #1468 --HG-- branch : trunk
2010-04-04Fixed faction issue with vehicles in BattleGrounds. Thanks to Gyullo for ↵_manuel_
help and Rat for idea. --HG-- branch : trunk
2010-04-03Fix periodic heal log (correctly display critical heal tick)thenecromancer
--HG-- branch : trunk
2010-04-03Fix waypoint movement removing flying animation for creaturesthenecromancer
Fix flying creatures always moving forward ( maybe use flag only when really moving? ) --HG-- branch : trunk
2010-04-03Fix calculation of partial resistance cases, by Tlexii.Machiavelli
--HG-- branch : trunk
2010-03-30Break spells on damage in some aura types.Anubisss
This commit fixes spell Repentance(20066). Patch by QAston, thanks to him. --HG-- branch : trunk
2010-03-27Use ToTotem() in a case.Anubisss
--HG-- branch : trunk
2010-03-27Make a function(ToTempSummon()) which can convert Creature to TempSummon ↵Anubisss
with a C++ cast(reinterpret_cast) and with a type check(isSummon()). This function is like ToPlayer(), ToTotem(), etc. This commit is like ede831bdd6f0cff481acc33f269fa7f8c78befd4 / r7496: http://code.google.com/p/trinitycore/source/detail?r=ede831bdd6f0cff481acc33f269fa7f8c78befd4 As a result, this commit has the advantages and the "disadvantages" too, like r7496. Please try to be polite if this commit causes some crashes. --HG-- branch : trunk
2010-03-22Fix Crash in XT-002 (Gravity Bomb proc). Fixes issue #734.Trazom62
Fix compilation warning. Fix typo in Freya soundid. --HG-- branch : trunk
2010-03-21Add additional field for storage of speed_run rate of creature_manuel_
This allow independent rate of walk vs run speed. Existing field renamed to explicit speed_walk. Note that default database rate for run is a result of the most common value seen, 8.0/7.0 Author: NoFantasy. --HG-- branch : trunk
2010-03-21Don't proc KILLED for the victim twice when attacker's pet lands the killing ↵Xanadu
blow. --HG-- branch : trunk
2010-03-21Implemented Glyph of Drain Soul. Partly based on thenecromancer's code.Xanadu
--HG-- branch : trunk
2010-03-20Improved the kill proc slightly.Xanadu
--HG-- branch : trunk
2010-03-20Restore RewardPlayerAndGroupAtKill call from previous commit. This is the xp ↵Trazom62
or honor reward for the tapping player/group. --HG-- branch : trunk