Commit graph

729 commits

Author SHA1 Message Date
Laise
2c38016459 [10576] Prevent diseases to be dispelled while 50536 is on target 2010-10-02 13:39:50 +02:00
Opterman
a9231eee98 [10566] Implement SMSG_SPELLINSTAKILLLOG
Signed-off-by: DasBlub <dasblub@gmail.com>
2010-09-30 21:31:26 +02:00
zergtmn
ab3de84cca [10561] Avoid ask AI for direct controlled creature at attack.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix warrning double->float in recent commited code.
2010-09-30 18:05:38 +04:00
cmaranec
cfe681ff7a [10558] Fix spell "Spinning" (64385) for item "Unusual Compass" (45984)
Signed-off-by: DasBlub <dasblub@gmail.com>
2010-09-29 22:09:42 +02:00
VladimirMangos
7f49bd357e [10548] Implement missing part spell 47568 functionality.
Original patch prowided by False.Genesis.
2010-09-26 23:36:32 +04:00
VladimirMangos
b236e83e70 [10546] Fixed EffectActivateRune activate only expected runes amount of some rune type. 2010-09-26 22:04:43 +04:00
VladimirMangos
2170c9c919 [10529] Water level in movement use fixes.
* Move selection allowed upper and lower heights for target point
  into near point core function used for contact/close point selection.
  Selection base at possibility target point searcher fly/swim(or walk by water bottom).
* Use vamp water level data so have proper water level in instances in movements.
* Use increased ground search distance for water level case.
2010-09-25 08:01:28 +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
f0956e258c [10484] Use for auraholde/aura GetStackAmount uint32 result.
uint32 result used in most expressions for stack calculation/compare
Alos uint8implicitly casted to int by C++ in expressions that generate unexpected
signed/unsigned warnings in comparisons (uint8 +1) > uint32 and similar.
2010-09-14 21:30:42 +04:00
faramir118
f8c258608f [10477] Fixed heal amount for some cases heal absorb
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-12 20:35:18 +04:00
Laise
b91f914dbc [10476] Fix 31228 and ranks 2010-09-12 16:52:26 +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
Vinolentus
73a85b0989 [10470] Fixed totem owner faction/level set for creature onwer case.
When totem created creature owner alos not in world yet.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-11 14:53:58 +04:00
ascent
88cc2d440f [10465] Implement SPELL_EFFECT_REDIRECT_THREAT
Note: all spells with effect expect additional code for redirection reset.
Until code adding redirection work longer that expected.

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

Patch partly rewrited with move new data into HostileRefManager
and added redirection to threatAssist. Also bug fixed with
redirection threat to unit not in hostile list yet.
2010-09-11 00:35:13 +04:00
Laise
e115f635ef [10455] Add missing break, thanks to nos4r2zod 2010-09-08 11:28:40 +03:00
Laise
0cb6f7be0c [10453] Fix disease consume part of 49020 and ranks 2010-09-08 10:47:41 +03:00
Darkrulerz
214c65baa1 [10449] Typos in enum names and comments
Also typos find by darkstalker and Neo2003

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-06 15:48:37 +04:00
lavinelu
87b2ab6ba1 [10437] Fix engineering bonus for injectors
Signed-off-by: Laise <fenrisse@gmail.com>
2010-09-03 08:33:50 +03:00
VladimirMangos
09b03b470e [10402] Use ObjectGuid in packets and fix some uint32 guids cases. 2010-08-23 12:37:11 +04:00
VladimirMangos
0649b508e4 [10383] Store guid instaed pointer for first user of GAMEOBJECT_TYPE_SUMMONING_RITUAL
This is more safe way in pointer store comparison with.
LAso Some related code cleanups.
2010-08-20 12:58:32 +04:00
NoFantasy
d0df25fd8c [10381] Implement generic system for racial model selection
Table creature_model_info store creature entry to use model from (or explicit model). The selection is based on a base modelId and racemask.

Hacks for shapeshift models removed (data included in SQL update)
Dropped no longer needed creature_model_info.modelid_other_team, as creature_model_info can and should be used instead (sorry, this is what happen when author doesn't do full research :) )

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-19 16:58:53 +02:00
VladimirMangos
5f44c4da21 [10363] More wide use ObjectGuid in way remove MAKE_NEW_GUID uses.
Also
* Fixed some amount wrong uses low guids as full player guids.
* Add private without body ObjectGuid(uint32 const&) for catch wrong assigns low guids to ObjectGuid.
  In some cases need assign "0" guid, then use ObjectGuid() instead.
* Fixed .pdump commands work.
2010-08-17 08:22:28 +04:00
crackm
806ea9bbe7 [10359] Implement spell 45449.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-08-15 03:14:17 +04:00
VladimirMangos
45cdc67f58 [10338] Create Map version for GetPlayer/GetUnit fucntions
* This let make map local way access for cases when player/all units
  expected to be at same map (for scripts cases for example).
  Ofc, still exist many places where code expect world wide player search.
  Spell casting for support far target cases, groups/guilds/chat/etc packets

* Function Unit::GetUnit depricated and will removed soon.
* Function GetCreatureOrPetOrVehicle renamed to less horriable GetAnyTypeCreature name.
2010-08-10 23:22:11 +04:00
NoFantasy
fefd648d3e [10330] Add dummy aura effect of spell 10255 and dummy effect of 10254
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-08 23:40:33 +02:00
Lynx3d
a977c068f0 [10327] Implement reputation rates and aura effects for Spell::EffectReputation().
Also apply rates after percentage aura modifiers, so auras always
give expected percentage of final value independant of "hidden" rates.
2010-08-07 21:19:59 +02:00
NoFantasy
787fb83763 [10303] Clarify bool used for script call ProcessEventId
isStart is default true. For transport/taxi cases, it may be false for event id's at arrival (event id ending)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-01 02:19:31 +02:00
VladimirMangos
4f19017872 [10300] Fixed some strange GetAura arg values. 2010-07-31 21:46:24 +04:00
NoFantasy
2ad9cd34b2 [10299] Add new script call ProcessEventId
Let script library know when some event is about to start. Event id's may be found in several sources, such as spells, GO's and transport/taxi paths.
Database scripts may be prevented by returning true from script side whenever needed. If false, DB script will run like normal.
New database table event_id_scripts will need a ScriptName for the event id, in same way as for example areatrigger_scripts.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-31 17:52:38 +02:00
dpedroia15
181428e132 [10295] Add dummy effect of spell 24930
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 19:30:09 +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
Lynx3d
33e7d46519 [10248] Implement applying proper penalty spell when making use of talent 46917. 2010-07-23 07:45:57 +02:00
Lynx3d
a4a6a7a609 [10237] Implement additional damage proc on hit for Spell 8024 and ranks. 2010-07-21 03:19:52 +02:00
pasdVn
d59cd7c2f2 [10233] Fixed check in SpellAuraHolder::HasMechanicMask
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-20 15:05:47 +04:00
Laise
d8c1374fcd [10232] Fix mechanic-related check, thanks to VladimirMangos 2010-07-20 13:20:35 +03: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
Laise
ae51168ffc [10199] Fix 33763 and ranks final heal and mana return on dispel and on expire 2010-07-16 21:35:00 +03:00
virusav
a27ecef96d [10195] Some gender dependent spells
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-15 05:32:46 +04:00
VladimirMangos
04ec18afce [10187] 2 non-sense code lines cleanup. 2010-07-13 03:55:52 +04: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
Lynx3d
0096bf6ebb [10157] Fix makefile and make gcc happy. 2010-07-07 19:31:23 +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
NoFantasy
abe6776358 [10155] Add script effect of spell 66744
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-06 15:15:23 +02:00
NoFantasy
4024a1c50c [10121] Add a few comments about DYNAMICOBJECT_BYTES + fix typo in one. 2010-06-29 12:23:29 +02:00
NoFantasy
b8540cf04d [10116] Remove some wrongly initialized fields for dynamic object.
This will correct visual appearance of spells like for example id 26573.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-06-28 12:55:39 +02: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
b8246b1dbb [10100] Fixed some cases assign low guid to full guid update field. 2010-06-23 10:51:38 +04:00
SilverIce
e427ce80cc [10052] Camera System
(based on SilverIce's repo commit 4f2f4ab + next 3 more)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-14 07:23:03 +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
Insider42
d757ba2a73 [10040] Expected RAP bonus to damage for spell 1510 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-06 22:15:27 +04:00