Commit graph

498 commits

Author SHA1 Message Date
zerg
e74d56f9d2 [10626] Fix logic in FillRaidOrPartyManaPriorityTargets and FillRaidOrPartyHealthPriorityTargets
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-10-20 03:08:59 +04:00
DasBlub
61102e3b16 [10610] Renamed some functions from the Creature class
Also other classes have been affected, due to the use of search&replace.
This will probably break some patches and 3rd party libraries, so make sure to update them if required.
Thanks to Phille for the original idea and patch!
2010-10-14 22:07:04 +02:00
VladimirMangos
119ce033a8 [10580] TARGET_ALL_RAID_AROUND_CASTER include caster only for positive spells. 2010-10-06 04:17:32 +04:00
VladimirMangos
41e41947e7 [10572] Drop unused Spell::m_triggeringContainer 2010-10-01 17:00:08 +04:00
Laise
a67b6a1da5 [10570] Store spell entry of triggering spell on triggered, original patch provided by insider42 2010-10-01 13:17:28 +02:00
VladimirMangos
958c3ac04c [10547] More correctly check delay time for spell with speed. 2010-09-26 23:33:56 +04:00
BugFix
75611b78fa [10539] Use more near for final point coordinates for Z calcualtion.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-26 16:39:11 +04:00
Insider42
54980328f9 [10527] Disable CombatSpell check for triggered spells
Signed-off-by: Laise <fenrisse@gmail.com>
2010-09-24 16:58:03 +02:00
darkstalker
3a8ad26a5e [10526] Implement server side global cooldown check.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also pet/controlled unit global cooldown code replaced by new placed in charmInfo structure.

Thanks to nos4r2zod for testing and gcd range check implement.
2010-09-24 06:07:26 +04:00
VladimirMangos
b0edd807d7 [10513] Clear grid *Check/*Searcher clases use
* Check class considered have all info select  object in world from suggested but grid walker list in some grid.
  This also meaning that Check must always have focus object around that (and in same phase) fit objects must be.
* Searcher only must ask Check and know how from all objects fiting to Check select result object(s).

For this reason and for better compatibility removed first arg (searcher) form all Searcher classes.
Instead expected used Check::GetFocusObject() object if need ( by always need check and simolify Check classes
phase checked in Search classes). This also restore source code compatibilty in related lines with prev.client
version branches code.

* While focus object adding fixed possible wrong phase object selection at stealth detection and at corpse searches.
2010-09-22 06:25:21 +04:00
VladimirMangos
5e9b5a5297 [10512] Fixed cast item remove at trade enchanting in some cases
Also nit allow item use spels casts if item in trade.
2010-09-21 10:35:58 +04:00
Laise
abbf4f5331 [10486] Use casterGUID check for delaying holder since possible stacking same spell from different casters 2010-09-15 11:36:04 +02:00
VladimirMangos
84a915e1b1 [10475] Implement SPELL_AURA_HEAL_ABSORB (301)
Used for example in spells 66237 and 70659.

Also rename CalculateAbsorbAndResist -> CalculateDamageAbsorbAndResist
2010-09-12 02:45:26 +04:00
VladimirMangos
acd0716297 [10432] Rename ASSERT -> MANGOS_ASSERT and related fixes
ASSERT hard use in predictable way because diff. 3rd party libs code
redefine it inf different ways and hard make sure that used in end
of mangos define version. This is real detected problem make some
expected assert checks ignored and so bugs not detected as expected from code.

In addition made related changes:
* Common.h header expected to be first include in any src/game/header except most simple cases.
* Related FILE.h header expected to be first include in FILE.cpp
* Fixed some absent includes and type forwards for safe build without PCH enabled.
* Avoid using MANGOS_ASSERT in src/framework code
2010-09-02 05:13:16 +04:00
Laise
99214e9d8c [10424] Fix 50334 additional targets part 2010-08-30 09:54:40 +03:00
VladimirMangos
09b03b470e [10402] Use ObjectGuid in packets and fix some uint32 guids cases. 2010-08-23 12:37:11 +04:00
VladimirMangos
77ae9a63b8 [10385] Remove Unit::GetUnit and update it callers. 2010-08-20 16:53:45 +04:00
VladimirMangos
dbe9c6f190 [10371] More wide use ObjectGuid in group code.
Also drop some unused functions.
And fix some uint32 -> uint6 guid assigns.
2010-08-18 13:43:55 +04:00
VladimirMangos
085811fc06 [10336] Server side checks for casting non-combat spells in combat.
Interrupt casting non combat spell spell at neter to combat
and prevent it casting in combat (last checked by client
but better recheck at server for prevent cheating).
2010-08-10 02:01:08 +04:00
NoFantasy
b0a3ad5aa5 [10329] Improve target selection for spell_script_target creature targets
Fixes a problem where database has more than one entry for a spell and target is explicitly provided by script side.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-08 22:45:58 +02:00
Lynx3d
28d1ac66c3 [10298] Clear tavern rest when leaving building and prevent forced unmount when in GM mode. 2010-07-31 09:54:43 +02:00
NoFantasy
25d9fd265b [10293] Correct a not exitan...non-existin... a word that is often spelled wrong
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 18:26:08 +02:00
VladimirMangos
8b3fffb0ba [10280] Implement glyph 43425 2010-07-28 21:28:19 +04:00
Lynx3d
c5038d2b95 [10238] Set flag for offhand melee spells to allow proper triggering of weapon-specific effects. 2010-07-21 03:22:40 +02:00
VladimirMangos
0e2a80477a [10222] Restore proc events at full miss/immune spells to target. 2010-07-19 06:50:01 +04:00
Lynx3d
f2e3881a77 [10205] Correctly implement flying mount restrictions in zone 4395 by use of special area flag.
Also drop existing spell_area entries if exist, workaround not needed anymore.
2010-07-17 05:53:17 +02:00
Lynx3d
01d326b90d [10202] Rename isInFlight() to IsTaxiFlying() and UNIT_STAT_IN_FLIGHT to UNIT_STAT_TAXI_FLIGHT.
Also add IsFreeFlying() function to Player class.
2010-07-17 02:06:28 +02:00
VladimirMangos
f4dde39085 [10192] Small cleanups related target effectMask check. 2010-07-15 02:45:28 +04:00
Laise
904ef55b4e [10189] Fix display of Interrupted message and fix channelled spells interrupting 2010-07-14 13:24:16 +03:00
Lynx3d
5e89098a61 [10165] New collission system (vmap) implementation
Important:
* You have to re-extract and assemble vmaps
* Update your config file, new option 'vmap.enableIndoorCheck' added

New features:
* Include WMO+DBC area information for correct subarea identification and indoor check
* Support for WMO liquid (fishing/swimming in cities, instances and oterh WMO based environments)

Technical changes:
* New Bounding Interval Hierarchy (BIH) data structure for better performance
* Referenced model data for reduced memory usage,
  needs more files, but reduces overall file size from ~1.9GB to ~550MB

Additional Authors:
arrai (DBC handling and indoor detection)
faramir118 (windows support and bug investigation)
And of course thanks Vladimir for a lot of patience and support!
2010-07-08 23:17:26 +02:00
Laise
a32b3063a2 [10156] Add shared object for auras of same spell and move spell proc code to its own file, also spread procs by auras and effect indexes. 2010-07-07 19:08:26 +03:00
Lightguard
38d3fd9c6e [10133] Fix targetmap of spell 53434 and 70893
Thanks to Blaymoira for 70893
2010-07-02 01:49:41 +02:00
zerg
3215c80cce [10129] Add cooldown marker for talent 56342 and ranks triggering spell.
(based on zergtmn's repo commit 87d1309)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-30 22:14:03 +04:00
NoFantasy
3eb2d2910e [10112] Rename GetObjectSize function to GetObjectBoundingRadius
To reflect better what the function should actually return and also to clarify when used in misc calculations.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-06-27 14:14:23 +02:00
VladimirMangos
81851074ad [10075] Attempt use more expected by result buffs downranking algo.
* In small rate more fast
* Not affect non-buff ranked spells like 10909
2010-06-18 04:21:34 +04:00
VladimirMangos
07a931e141 [10074] Add IsPassive(SpellEntry*) function and use in cases wjern entry already known.
Some other small code cleanups
2010-06-18 02:17:51 +04:00
VladimirMangos
64f959fb82 [10050] Implement apply non-trade slot item enchanting at trade complete.
Base at original patch provided by arrai.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-11 22:46:16 +04:00
zergtmn
6986ecbd9b [10046] Store guids instead slot data for trade items.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-08 20:48:59 +04:00
VladimirMangos
6ebbcd8dbb [10028] Reward group for shareable quests at cast event to creature/go. 2010-06-04 20:01:57 +04:00
VladimirMangos
e823b30f4f [10021] Move item disenchanting static req. checks to server start. 2010-06-02 14:58:35 +04:00
Revils
ee31661bb8 [9994] Fixed a bug/typo that prevent to summon a special flying mount.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-28 15:27:57 +04:00
MaxXx2021
2e7a009b01 [9993] Limit spell 50988, 59870 targets amounts to expected.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-28 14:38:48 +04:00
VladimirMangos
86bef7ace5 [9984] Implement item 43214 work.
* Original version suggested by timmit.
* Required DB support for target requirement.
2010-05-27 19:14:02 +04:00
zergtmn
afc9b28103 [9980] Remove target guid in spell with TARGET_FLAG_DEST_LOCATION
Corrects spell animations and visual going in weird directions for these kind of spells

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-27 10:03:58 +02:00
Insider42
ff9990a777 [9965] Fixed triggering of spell 55095 by 45524.
(based on insider42's repo commit 90de00d)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

It include reverts commit ca99760e884d82219fff63ecf5f2ca87b02b5924
with less clean implemetation.

[patch 155] Fixed triggering of spell 55095 by 45524. Patch provided by me

(based on commit 90de00d)
2010-05-23 18:36:40 +04:00
VladimirMangos
de454d6ff8 [9955] Prevent negetive proc events from possitive effects of negative spells.
Some negative spells have positive effects with targets not affected by negative effects of spell.
For example spell 45524 cast negative effecst to target and possitive effect to caster self.
For like possitive only target of negetive spell will not triggered negative proc events.
In last cases will avoid triggering glyph 43537 at caster at spell 43537 cast.
2010-05-22 16:18:03 +04:00
VladimirMangos
d740b2f167 [9949] Add target for TARGET_DUELVSPLAYER_COORDINATES only if not provided by another way.
This fix for exmple unexpected empry heal if targeted by spell 48438 and ranks.
2010-05-22 10:19:08 +04:00
j4r0d
36a76e38a9 [9944] Implement spell 633 and ranks self casting restrictions in 3.3.x
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-21 05:39:25 +04:00
VladimirMangos
d4f1b510ae [9934] Skinning related fixes
* Show skinning tooltip only after creature loot
  (when creature can be explcitly skinned).
* Allow reopen skinning loot if still have not looted items.
2010-05-19 15:35:20 +04:00
VladimirMangos
d86dcd60d7 [9925] Add more log filters
* damage - different direct damage calculation tracing
* combat - combat state updates, roll attack result and etc
* spell_cast - spell cast progress and aura apply
2010-05-18 12:38:52 +04:00