aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
AgeCommit message (Collapse)Author
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
2010-03-20Fixed KILL proc to occur for the unit that lands the killing blow, not for ↵Xanadu
the loot recipient. --HG-- branch : trunk
2010-03-19Missing part of previous commit (Periodic Leech is DoT as well)thenecromancer
Fix talents Improved Rend and Gag Order not increasing whole damage of affected spells (applying effect modifiers - spellmod_effectx should be however done for every static damage added to already calculated damage, we can't just apply all spellmods after effects are processed...) --HG-- branch : trunk
2010-03-19Fix issues with NPC that have nonphysical melee damagethenecromancer
Remove Ranged attack from attackerstateupdate() children function (Ranged attacks are always done using spells) --HG-- branch : trunk
2010-03-19Fixed broken missile visuals in certain DST and SRC type spells (Void ↵Xanadu
Reaver's Arcane Orb and many others). Achieved by fixing wildly incorrect SMSG_SPELL_GO target mask data handling. --HG-- branch : trunk
2010-03-18remove unused player's class member,cleanupsilverice
--HG-- branch : trunk
2010-03-18Added (blizzlike) packet broadcast to near teleport. Thanks to Zor and ↵Xanadu
nalimleinad (AKA anonymous colleague #1) for research. --HG-- branch : trunk
2010-03-18Identified a new spell attribute forbidding some spells to use caster's done ↵Xanadu
dmg mods (spellpower etc). --HG-- branch : trunk
2010-03-18*always remove UNIT_FLAG_OOC_NOT_ATTACKABLE if crature enters combat and ↵Rat
reset on leave combat -Please post feedback if it breaks any script! --HG-- branch : trunk
2010-03-17Added hack that was removed in [7443]silverice
Closes issue #979 --HG-- branch : trunk
2010-03-17CleanupXanadu
--HG-- branch : trunk
2010-03-17Fixed Drain Soul increased damage for targets below 25% HP. Closes issue ↵Xanadu
#394. Closes issue #748. Closes issue #938. Rejoice, new era of server-side spells has begun! --HG-- branch : trunk
2010-03-15attempt to stop mobs casting and fleeing while stunned or confusedreno
--HG-- branch : trunk
2010-03-15Remove Hack detecting spell 61988 in HasAura()thenecromancer
Correctly cast 61988/61987 after casting Avenging Wrath/Divine Shield respectively (This will correctly show both spells disabled state) Don't allow casting Lay on Hands on self when aura 61988 is present (ie. after using Avenging Wrath) --HG-- branch : trunk
2010-03-15Fixed Drain Soul and Shadowburn Soul Shard on target death. Closes issue 1058.Xanadu
--HG-- branch : trunk
2010-03-12Fixed crash on player kill and cleaned up the code a bit. Closes issue 1062. ↵Xanadu
Closes issue 1064. --HG-- branch : trunk
2010-03-11Fix Val'anyr, Hammer of Ancient Kings. Thanks sombre88.Trazom62
Fixe issue #910. --HG-- branch : trunk
2010-03-11Fix crash in getFactionTemplateEntry.Trazom62
Fixe issues #1050. --HG-- branch : trunk
2010-03-11Implement group loot for chest having GroupLootRules (go type=3, data15=1).Trazom62
Implement round robin loot. Implement round robin for underthreshold items (group loot and need befor greed). Fix "all players pass" bug on creature. Add SMSG_LOOT_LIST message to indicate looter (round robin or master). And some other minor loot bugs. Fixes issue #167. Fixes issue #247. --HG-- branch : trunk
2010-03-11Convert some C style casts to new functionsthenecromancer
--HG-- branch : trunk
2010-03-10Fix debug msg in Unit::SetCharmedBySpp
--HG-- branch : trunk
2010-03-10Totem* casts.raczman
--HG-- branch : trunk
2010-03-10* Add GUID logging in Unit::SetCharmedBy.XTZGZoReX
--HG-- branch : trunk
2010-03-10* Update AiReaction enum.XTZGZoReX
--HG-- branch : trunk
2010-03-09Rename 'Hostil' to 'Hostile'Spp
Credits to NoFantasy (Mangos) Closes issue #411 --HG-- branch : trunk
2010-03-08Backed out commit 3cb8647899, values are in dbcs, if you have issues with ↵_manuel_
the spell try to show us the debug lines. --HG-- branch : trunk
2010-03-08fix my typo in a4f4c51dca,silver1ce
could not detect it earlier Сloses #1029 --HG-- branch : trunk
2010-03-07Some Creature* casts moved to new ToCreature.raczman
Added const Creature* ToCreature() --HG-- branch : trunk
2010-03-07avoid send movement packet at death twice, cleanupsilver1ce
--HG-- branch : trunk
2010-03-07Added new type-safe cast functions.raczman
This, when properly used, should get rid of most memory corruption issues, currently, casting types C-style with no checks leads to some abstract crashing. Functionality is same as with dynamic_cast<>, but with no RTTI check - so when casting into invalid type you will receive NULL, and most probably crash. At the same time, i took the liberty to convert most Player* casts to ToPlayer(). Still needs crapload of casts being moved to new facility. --HG-- branch : trunk
2010-03-01Fixed Eye for an Eye by Gyullo._manuel_
--HG-- branch : trunk
2010-02-28Change the conditional statement for Merciless Combat so it correctly ↵p0wer
applies extra damage when required. Fixes #860. --HG-- branch : trunk
2010-02-28Fix mana set to 0 when mob dies. Thanks Malcrom.Trazom62
--HG-- branch : trunk
2010-02-28Fix Increases damage taken by %. Thanks moriquendu.Trazom62
Fixes issue #929. --HG-- branch : trunk