Commit Graph

612 Commits

Author SHA1 Message Date
Biglad
1e8fcf16f3 * Force pvp flag on player if assisting player all ready flagged for pvp, (exploit fix)
--HG--
branch : trunk
2009-10-08 13:39:56 +01:00
Machiavelli
2cd66e90c2 * Do not let Seal of Command proc on anything other than a melee swing.
* Fix Judgement of Blood/Martyr dummy by nos4r2zod
* Fix Judgement of Command dummy by nos4r2zod

--HG--
branch : trunk
2009-10-06 17:09:11 +02:00
maximius
09bb578d86 *Cleanup and attempt to fix some crashes.
--HG--
branch : trunk
2009-09-29 20:59:32 -07:00
maximius
f980dd9ac6 *Merge [8524] New cell search algorithm implemented. You can now choose different
visibility distances on continents, in BG/Arenas and instances. Author: Ambal
*Some warning cleanup

--HG--
branch : trunk
2009-09-27 02:24:25 -07:00
maximius
906b00465a *add 11 new event hooks to the OnEvents system, by Hawthorne
--HG--
branch : trunk
2009-09-23 20:19:21 -07:00
maximius
d79957e5c3 *Send channeling start/update packet, converted by Stryker, original by pasdVn
--HG--
branch : trunk
2009-09-22 18:19:31 -07:00
maximius
cdfb402122 *Hacky fix to Grounding Totem by Themris (better than no fix at all, and very difficult to fix properly)
--HG--
branch : trunk
2009-09-22 18:13:59 -07:00
maximius
9e5c8db01f *[8508] Not assign boolean value to integer variable, expecting to always be 0. Also renaming member variables. Author: NoFantasy
*[8516] Implement spell 53271. Author: Shendor
*[8519] Use RuneType enum where appropriate and more explicit data for rune init. Author: VladimirMangos
Thanks to: Stryker
*[8520] Limit telent 49182 and ranks triggering expected:wq runes cooldown case. Author: Shendor
*Fix Herald Volazj wrongly targeting himself on Shadow Bolt Volley instead of randomly targeting on Shiver, by tlexii.

--HG--
branch : trunk
2009-09-21 12:31:36 -07:00
maximius
333f1c9d72 *[8475] fixed some gcc-warnings Author: balrok
*[8476] Revert some recent cleanup changes, some other fixes and cleanups. Author: VladimirMangos
*[8489] Fixed player visibility update in case view point different from player itself. Author: SilverIce
*[8493] Avoid unexpected multiply error messages at wrong `quest_template`.`RewSpell*` Author: VladimirMangos
*[8496] Resolve some #include cycles and unsafe code.
* Common.h -> Threading.h -> Errors.h -> Common.h
* Remove reduncdent #include "ByteBuffer.h" in headers
* Remove redundent #include "Auth/BigNumber.h" in headers
* Avoid multyply data copy at use some now dropped functions in BigNumber.
* Avoid copy fixed byte count from byte arrays with unknown real size created from BigNumber.
* Avoid possible problems for build mangos at different platform or compilers. Author: VladimirMangos.
*[8501] Apply code style and cleanups to some Player functions. Author: VladimirMangos.
*[8502] Disable quests related to specific game events at startup if event not active. Also rename member boolean variable. Author: NoFantasy
*[8506] Add check for IsAutoComplete() in SendPreparedQuest().
For cases where quest is repeatable but has Method!=0, QuestDetails must be sent instead of RequestItems.
Some additional code cleanup. Author: NoFantasy
*[8507] Check amount of spawned pools before decrement to avoid unexpected result. Also rename variable to more meaningful name. Signed-off-by: NoFantasy <nofantasy@nf.no>

Thanks to Stryker and onkelz28!

--HG--
branch : trunk
2009-09-18 14:10:37 -07:00
maximius
140ec674a0 Backed out changeset d3fe2d6d504a (please test your patches thoroughly before getting me to push them ogeraisi)
--HG--
branch : trunk
2009-09-14 16:49:23 -07:00
maximius
b37f9b1e55 *Merged MaNGOS [8458], [8475], [8476] by ogeraisi, thanks to all authors :)
--HG--
branch : trunk
2009-09-14 16:02:13 -07:00
megamage
c150629f8d *Fix a crash caused by spell target type channelled target. Thanks to nanouniko
--HG--
branch : trunk
2009-09-02 12:11:01 -05:00
megamage
51affe07d0 *Fix some restriction of pet spell cast.
--HG--
branch : trunk
2009-09-01 01:11:28 -05:00
megamage
33a0155281 *Allow pet to have combo points.
--HG--
branch : trunk
2009-09-01 00:17:39 -05:00
megamage
7535a64b42 *Add a line in ~Spell for debug.
--HG--
branch : trunk
2009-08-31 14:30:54 -05:00
megamage
f5d4ee1e95 *Fix a crash caused by unremoved spell mode. Thanks to Visagalis
--HG--
branch : trunk
2009-08-31 00:14:45 -05:00
megamage
d802cd3811 *More update about positions.
*Ulduar: do not allow demolisher to regenerate pyrite. Player must shoot down and grab the containers to refill pyrite.

--HG--
branch : trunk
2009-08-29 23:20:16 -05:00
megamage
2a4c9bcaf9 *Make position as a class;
--HG--
branch : trunk
2009-08-29 14:58:45 -05:00
megamage
ab5f515f21 *Update flame levi script. Allow player to shoot down pyrite container and refill the demolishers.
*Other script-related fixes.

--HG--
branch : trunk
2009-08-28 11:26:20 -05:00
megamage
dd72b5524c [8426] Use upper/lower iterator pairs as result instead 2 function calls. Author: VladimirMangos
--HG--
branch : trunk
2009-08-27 20:27:55 -05:00
megamage
eeb18e51bb *Correctly process more movement packets. Author: VladimirMangos
--HG--
branch : trunk
2009-08-27 20:14:50 -05:00
QAston
562f661ac3 *Backout *[8394] Propertly reject self targeting for pet spell 2947 and ranks, and spell 54646.
--HG--
branch : trunk
2009-08-28 00:58:08 +02:00
megamage
ee3c766bc9 *Use one dynobj to handle multiple aura effects.
--HG--
branch : trunk
2009-08-27 16:41:10 -05:00
megamage
c5ff737ef8 *Fix a crash caused by possess pet. Thanks to nanouniko
--HG--
branch : trunk
2009-08-26 21:30:45 -05:00
megamage
21af4cf832 *Some clean up and add debug info to find the reason of crash.
--HG--
branch : trunk
2009-08-26 19:28:21 -05:00
megamage
dad2c55287 * Also check for Power Type when checking out if player has enough Runes to cast spell. Some spells have Rune cost entry, but use Runic Power instead ( eg. Mind Freeze ) By thenecromancer
--HG--
branch : trunk
2009-08-26 16:33:07 -05:00
megamage
87270fefc2 *Some update of aura system. Remove unnecessary variables and parameters from auraeffect. Always refer to parent aura when finding target/source/caster.
--HG--
branch : trunk
2009-08-24 22:31:54 -05:00
megamage
8dcfa4302b [8394] Fixes for some non-self only positive spells. Author: VladimirMangos
* Propertly reject self targeting for pet spell 2947 and ranks, and spell 54646.
    * Some related fixes for pet spells with target mode TARGET_SINGLE_FRIEND_2
    * Implement original caster bonus part of spell 54646.

--HG--
branch : trunk
2009-08-24 18:59:11 -05:00
megamage
3675c39743 *Fix the wrong calculation in spell target selection.
--HG--
branch : trunk
2009-08-24 18:36:00 -05:00
megamage
1ee90e1022 *Update vehicle system. Make vehicle a seperate class from creature.
--HG--
branch : trunk
2009-08-23 22:09:43 -05:00
Nevan
c59dcbbb85 *Fix Glyph of Wild Growth
--HG--
branch : trunk
2009-08-23 20:14:51 +02:00
megamage
b35fe879ad *Some update of spell target selection.
--HG--
branch : trunk
2009-08-23 00:46:21 -05:00
megamage
012d6fa865 [8381] Some refactoring work in Unit::m_currentSpells code. Author: VladimirMangos
* Restrict access, use enum args, move some repeated code parts to function.
    * Make m_selfContainer set only part of Unit::SetCurrentCastedSpell

--HG--
branch : trunk
2009-08-19 16:52:51 -05:00
megamage
6a9693a1e4 [8369] Some step back in triggered effect caster selection. Author: VladimirMangos
(I do not know what spells this will fix)

--HG--
branch : trunk
2009-08-17 15:54:39 -05:00
Machiavelli
43dc0c97d1 * Fix bug that player cannot receive credit for killing a creature if damage done to the creature by spell reflect >=49% of the creatures HP.
--HG--
branch : trunk
2009-08-17 06:02:01 +02:00
QAston
e2e70b936b *Cleanups and obsolete spell handlers remove.
--HG--
branch : trunk
2009-08-11 19:57:27 +02:00
megamage
462086f3b1 *Fix a bug that UNIT_STAT_CASTING is not cleared when delayed spells are casted.
--HG--
branch : trunk
2009-08-08 11:53:48 -05:00
QAston
6b4772207f *Cleanups, remove obsolete code and minor optimizations in spellauras.cpp and spelleffects.cpp
*Remove GetDummyAura(uint32 spellid) function - it is faster to use GetAuraEffect or GetAura if id is known than iterate threw dummy auras list
*Move Death Strike code from HandleDummyAuraProc to Spell::EffectDummy - original patch by hununza.

--HG--
branch : trunk
2009-08-08 16:18:05 +02:00
megamage
0f7b23070f *Fix a bug introduced in 3874. This makes IsNonMeleeSpellCasted cannot correctly check if caster is casting.
*This fixes the bug that Heigan chases players when he is channelling.

--HG--
branch : trunk
2009-08-07 16:12:50 -05:00
megamage
3549c0bddd *Check category instead of flags for some spells. Author: VladimirMangos
--HG--
branch : trunk
2009-08-07 14:40:37 -05:00
megamage
e3e09cc86a *Fix a typo.
--HG--
branch : trunk
2009-08-05 16:42:12 -05:00
megamage
907342d5b0 [8308] More generic code for new continent spell casting including fly form/mounts. Author: VladimirMangos
* Check new continent requirement by SPELL_ATTR_EX4_CAST_ONLY_IN_OUTLAND in
      SpellMgr::GetSpellAllowedInLocationError.
    * Also in this function let ignore any area requirement in GM-mode (except client side checks ofc if use spellbook/item)
    * For fly form/mount auras check only speciaal reqirement like special fly skill and ignore it for dead state.
    * Drop explicit fly auras drop at zone update, now this part GetSpellAllowedInLocationError functionality.
    * Allow in `spell_area` have data deepndent from ghost auras

    This all allow implement apply spells 55173/55164 to player ghost wiht DB support in `spell_area`

--HG--
branch : trunk
2009-08-05 16:33:34 -05:00
QAston
d7df4cfa09 *Fix Coyote Spirit Despawn Aura (52172) and Blood Parrot Despawn Aura (60244) - inspired by Disassembler's patch.
--HG--
branch : trunk
2009-08-05 17:00:01 +02:00
QAston
d883bf5b44 *Fix target selection for Ancestral Awakening and Replenishment - by Them
--HG--
branch : trunk
2009-08-05 04:37:19 +02:00
QAston
50ce9f8cfa *Correct implementation and use of dbc data for aura SPELL_AURA_CONVERT_RUNE(249)
*Fix Blood of the North, Reaping - original patch by thenecromancer
*Fix Death Rune Mastery.

--HG--
branch : trunk
2009-08-05 02:36:26 +02:00
QAston
d95e9c1027 *Fix Gargoyle feeding behaviour - original patch by thenecromancer.
*Add SPELL_TARGET_TYPE_CONTROLLED for spell_script_target table for fast search of units(grid search skipped) and to prevent applying effects to not owned summons

--HG--
branch : trunk
2009-08-04 19:28:31 +02:00
megamage
a1d5f174be Avoid target requirement checks for spells with caster base target selection (self,pet,around). Author: VladimirMangos
This fix cast fail for some spells, mostly triggered or scripted with unexpected prowided explicit tatrget different from caster.

--HG--
branch : trunk
2009-08-02 10:03:38 +08:00
megamage
e1571c0492 *Handle target area path as area cone for now.
--HG--
branch : trunk
2009-07-31 11:12:04 +08:00
QAston
a2701d589d *Correct some trap proc checks (do not threat trap cast as triggered)
*Fix a typo causing freeze.

--HG--
branch : trunk
2009-07-30 19:07:51 +02:00
megamage
af2d5e3fd4 [8250] Cleanup code and data for spell_threat Author: nos4r2zod
* Load table data to std::map instead SQLStorage and add check loaded spell existance.
    * Drop from table not existed spells.

--HG--
branch : trunk
2009-07-30 11:37:08 +08:00