Commit Graph

1383 Commits

Author SHA1 Message Date
Anubisss
b66f312888 Break spells on damage in some aura types.
This commit fixes spell Repentance(20066).

Patch by QAston, thanks to him.

--HG--
branch : trunk
2010-03-30 15:49:59 +02:00
Anubisss
d9de0874ae Use ToTotem() in a case.
--HG--
branch : trunk
2010-03-27 16:21:37 +01:00
Anubisss
ce8cc85dfa Make a function(ToTempSummon()) which can convert Creature to TempSummon 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-27 16:08:14 +01:00
Trazom62
248286c08d Fix Crash in XT-002 (Gravity Bomb proc). Fixes issue #734.
Fix compilation warning.
Fix typo in Freya soundid.

--HG--
branch : trunk
2010-03-22 14:07:08 +01:00
_manuel_
fae77f2621 Add additional field for storage of speed_run rate of creature
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-21 14:57:49 -03:00
Xanadu
74a2957af5 Don't proc KILLED for the victim twice when attacker's pet lands the killing blow.
--HG--
branch : trunk
2010-03-21 16:23:50 +01:00
Xanadu
91260d8409 Implemented Glyph of Drain Soul. Partly based on thenecromancer's code.
--HG--
branch : trunk
2010-03-21 16:03:38 +01:00
Xanadu
830062779e Improved the kill proc slightly.
--HG--
branch : trunk
2010-03-20 18:49:50 +01:00
Trazom62
feeb3f564c Restore RewardPlayerAndGroupAtKill call from previous commit. This is the xp or honor reward for the tapping player/group.
--HG--
branch : trunk
2010-03-20 13:02:34 +01:00
Xanadu
34fb5df569 Fixed KILL proc to occur for the unit that lands the killing blow, not for the loot recipient.
--HG--
branch : trunk
2010-03-20 04:18:08 +01:00
thenecromancer
34d7e1fed9 Missing part of previous commit (Periodic Leech is DoT as well)
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-19 08:47:03 +01:00
thenecromancer
e67274392e Fix issues with NPC that have nonphysical melee damage
Remove Ranged attack from attackerstateupdate() children function (Ranged attacks are always done using spells)

--HG--
branch : trunk
2010-03-19 08:26:44 +01:00
Xanadu
812874a55b Fixed broken missile visuals in certain DST and SRC type spells (Void Reaver's Arcane Orb and many others). Achieved by fixing wildly incorrect SMSG_SPELL_GO target mask data handling.
--HG--
branch : trunk
2010-03-19 00:21:57 +01:00
silverice
aca2d26bc5 remove unused player's class member,cleanup
--HG--
branch : trunk
2010-03-18 20:21:42 +02:00
Xanadu
59e0d42260 Added (blizzlike) packet broadcast to near teleport. Thanks to Zor and nalimleinad (AKA anonymous colleague #1) for research.
--HG--
branch : trunk
2010-03-18 17:58:27 +01:00
Xanadu
72833e1584 Identified a new spell attribute forbidding some spells to use caster's done dmg mods (spellpower etc).
--HG--
branch : trunk
2010-03-18 17:22:11 +01:00
Rat
2b096c478a *always remove UNIT_FLAG_OOC_NOT_ATTACKABLE if crature enters combat and reset on leave combat
-Please post feedback if it breaks any script!

--HG--
branch : trunk
2010-03-18 00:01:39 +01:00
silverice
4177b876f3 Added hack that was removed in [7443]
Closes issue #979

--HG--
branch : trunk
2010-03-17 21:34:42 +02:00
Xanadu
a73b9b0f1e Cleanup
--HG--
branch : trunk
2010-03-17 17:43:28 +01:00
Xanadu
e5cbe017f4 Fixed Drain Soul increased damage for targets below 25% HP. Closes issue #394. Closes issue #748. Closes issue #938. Rejoice, new era of server-side spells has begun!
--HG--
branch : trunk
2010-03-17 16:38:31 +01:00
reno
e65dfc6a31 attempt to stop mobs casting and fleeing while stunned or confused
--HG--
branch : trunk
2010-03-15 14:38:30 -05:00
thenecromancer
a81ad6986c Remove Hack detecting spell 61988 in HasAura()
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-15 18:03:43 +01:00
Xanadu
8cc3d2ad7f Fixed Drain Soul and Shadowburn Soul Shard on target death. Closes issue 1058.
--HG--
branch : trunk
2010-03-15 02:59:21 +01:00
Xanadu
9f81a8ba5c Fixed crash on player kill and cleaned up the code a bit. Closes issue 1062. Closes issue 1064.
--HG--
branch : trunk
2010-03-12 05:46:32 +01:00
Trazom62
856d41a7b5 Fix Val'anyr, Hammer of Ancient Kings. Thanks sombre88.
Fixe issue #910.

--HG--
branch : trunk
2010-03-11 23:18:05 +01:00
Trazom62
8947cfd41c Fix crash in getFactionTemplateEntry.
Fixe issues #1050.

--HG--
branch : trunk
2010-03-11 23:12:44 +01:00
Trazom62
ed8c5ef6ff Implement group loot for chest having GroupLootRules (go type=3, data15=1).
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-11 22:55:02 +01:00
thenecromancer
e1542df90c Convert some C style casts to new functions
--HG--
branch : trunk
2010-03-11 20:51:31 +01:00
Spp
103a61a358 Fix debug msg in Unit::SetCharmedBy
--HG--
branch : trunk
2010-03-10 09:01:17 +01:00
raczman
7fd1789109 Totem* casts.
--HG--
branch : trunk
2010-03-10 07:58:11 +01:00
XTZGZoReX
0038b2be0e * Add GUID logging in Unit::SetCharmedBy.
--HG--
branch : trunk
2010-03-10 02:41:16 +01:00
XTZGZoReX
54df245bb2 * Update AiReaction enum.
--HG--
branch : trunk
2010-03-10 02:02:24 +01:00
Spp
8034a6c48e Rename 'Hostil' to 'Hostile'
Credits to NoFantasy (Mangos)
Closes issue #411

--HG--
branch : trunk
2010-03-09 11:11:10 +01:00
_manuel_
ca033148c9 Backed out commit 3cb8647899, values are in dbcs, if you have issues with the spell try to show us the debug lines.
--HG--
branch : trunk
2010-03-08 23:17:26 -03:00
silver1ce
3847e3be42 fix my typo in a4f4c51dca,
could not detect it earlier
Сloses #1029

--HG--
branch : trunk
2010-03-08 23:40:46 +02:00
raczman
07f3b91426 Some Creature* casts moved to new ToCreature.
Added const Creature* ToCreature()

--HG--
branch : trunk
2010-03-07 18:30:53 +01:00
silver1ce
9a8f10fa30 avoid send movement packet at death twice, cleanup
--HG--
branch : trunk
2010-03-07 18:17:37 +02:00
raczman
91b8ee104e Added new type-safe cast functions.
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-07 15:20:19 +01:00
_manuel_
a40dad1f11 Fixed Eye for an Eye by Gyullo.
--HG--
branch : trunk
2010-03-01 19:51:48 -03:00
p0wer
1ceda14d54 Change the conditional statement for Merciless Combat so it correctly applies extra damage when required. Fixes #860.
--HG--
branch : trunk
2010-02-28 14:46:15 -06:00
Trazom62
4c16bff8e6 Fix mana set to 0 when mob dies. Thanks Malcrom.
--HG--
branch : trunk
2010-02-28 21:34:31 +01:00
Trazom62
fe3fa59839 Fix Increases damage taken by %. Thanks moriquendu.
Fixes issue #929.

--HG--
branch : trunk
2010-02-28 20:27:08 +01:00
silver1ce
fcaa318fb3 Update visibility system
*visibility updates and ai relocations processed simultaneously for each grid
  *these operations now are not synchronized for different grids
  *some changes into structure of visibility notifiers

--HG--
branch : trunk
2010-02-27 15:25:14 +02:00
Trazom62
1ce8d641f4 Fix Crash in Unit::GetVehicleCreatureBase. Thanks proof1337.
Fixes issue #821.

--HG--
branch : trunk
2010-02-25 19:15:35 +01:00
Brian
1ee9839bcb * Temporary fix for client freezes until the entire movement system can
* get an overhaul.
* Thanks to Biglad for pointing it out.

--HG--
branch : trunk
2010-02-24 23:50:21 -07:00
QAston
1e7f50b3f6 *Shadow Mark target requirement - by PrinceCreed
*Spiritual attunemennt heal amount fix - by beberlescaraber

--HG--
branch : trunk
2010-02-24 21:38:51 +01:00
QAston
c46c831094 *CRLF:(
--HG--
branch : trunk
2010-02-20 23:59:05 +01:00
QAston
2e3f89b61f *Move summon water elemental handler to correct place.
--HG--
branch : trunk
2010-02-20 20:28:31 +01:00
thenecromancer
cedf706f29 Treat rune cooldowns as timers and not as remaining tick counts
Implement support for modifiers changing rune regeneration rate
Apply all spells from Improved Unholy Aura

--HG--
branch : trunk
2010-02-18 01:06:47 +01:00
thenecromancer
6d05d649eb Fix Glyph of Unholy Blight, and make Unholy Blight accumulate damage.
--HG--
branch : trunk
2010-02-18 00:31:50 +01:00