Commit graph

870 commits

Author SHA1 Message Date
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
ed737c55cd [10287] Fixed crash in result double deleting auras in some cases.
Pre-aura holder code always remove auras from diff lists before un-apply aura affect call.
Restore this way work for new aura holder code. This prevent different strange affects
when aura find by search when it already expected to be removed from target, including case when in
result som un-apply called code aura deleted 2 times.
2010-07-30 05:00:59 +04:00
Laise
0faa1185ae [10268] If schoolMask present for proc, ignore SpellFamilyFlags check 2010-07-25 07:31:25 +03:00
Laise
dbf2d02762 [10255] Fix aura remove in Unit:: _UpdateSpells 2010-07-24 12:56:42 +03:00
Lynx3d
6c6ce87867 [10253] Small cleanup in Unit::HasAura() to prevent redundant upper_bound calls. 2010-07-23 23:15:13 +02:00
Laise
02532a469a [10249] Don't interrupt area effects for channeled spells from target side 2010-07-23 09:22:05 +03:00
Laise
30a0701ca9 [10241] Fix expired spell interrupt 2010-07-21 13:01:59 +03:00
Laise
3e326311ad [10240] Fix some spells proc from spells that don't deal damage/heal 2010-07-21 08:16:23 +03:00
Laise
d8c1374fcd [10232] Fix mechanic-related check, thanks to VladimirMangos 2010-07-20 13:20:35 +03:00
Laise
c384650af8 [10218] Restore trinket procs when no specific spell is defined for proc 2010-07-18 18:53:46 +03:00
zergtmn
5c6fbdb54e [10212] Fix iterator update in Unit::RemoveNotOwnSingleTargetAuras
Signed-off-by: Laise <fenrisse@gmail.com>
2010-07-17 21:36:53 +03:00
Laise
f37c73e255 [10211] Fix aura procs for spells with auras that can't trigger 2010-07-17 21:32:05 +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
SilverIce
e47e9a2218 [10201] Broadcast packets only if worldobject is in world
There is no sense to do that for objects that not in world - those objects are unknown for clients
and their packets will be ignored

(based on SilverIce's repo commit 6305402)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-17 03:46:57 +04: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
Laise
904ef55b4e [10189] Fix display of Interrupted message and fix channelled spells interrupting 2010-07-14 13:24:16 +03:00
Laise
beff2a145c [10185] fix auras adding to previously added holder 2010-07-12 20:29:26 +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
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
zerg
f5d6fe6b01 [10128] Since 3.3 pets receive 100% of master's resilience
(based on zergtmn's repo commit 21eba43)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-30 21:57:12 +04:00
NoFantasy
1713caae17 [10115] Add function to update model_info at changes to scale or model.
* At every change to model or scale, the related data (bounding_radius/combat_reach) is now updated accordingly (note that player combat_reach are not changed like creature).
* UpdateModelData is called from within SetDisplayId while changes to scale has explicit call to UpdateModelData after new scale is set (mostly for aura scale)
* The updated values are calculated by (scale*bounding_radius)/(scale*combat_reach)
* Database values for bounding_radius/combat_reach are expected to be relative to scale like 1.0

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-06-28 12:10:56 +02:00
VladimirMangos
67a7892075 [10114] Store associated InstanceSave for dungeon map in Map object 2010-06-27 21:11:26 +04:00
Laise
407156cbaf [10088] Restore work of 1120 and ranks. (Revert of [9962]) 2010-06-20 22:30:57 +03:00
VladimirMangos
3e210228f9 [10076] Fixed crash at remove from world pet under SPELL_AURA_MOD_POSSESS_PET
* Prevent crash at camera list update at attempt increment end() iterator.
* Properly do unapply SPELL_AURA_MOD_POSSESS_PET (GetPet() can return NULL at call, and not need checked)
* Propertly call unapply at delete auras cases for auras that set player-caster mover pointer.
2010-06-19 02:31:07 +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
523584766b [10071] Not need add new cases inline for in-class function definition.
This is redundant from current C++ standart point.
2010-06-17 05:35:41 +04:00
NoFantasy
9091d56e70 [10070] Remove old, commented code no longer needed in SendMonsterMove
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-06-17 01:04:35 +02:00
VladimirMangos
492f467bcc [10068] Fixes in pet movments
* Use proper stop packet as expected. In case 0 trevel time used before move packet
  can generate infinity move forward (at client side).
* Avoid reset top movegen before add idle in pet stay command.
* Avoid assign random move to player owned creatures as default movegen.
* Finish follow movegen init including need-stay case.
2010-06-17 02:46:39 +04:00
ApoC
7dd5456401 [10066] Some tuning in consts.
Signed-off-by: ApoC <apoc@nymfe.net>
2010-06-16 23:31:23 +02:00
VladimirMangos
0304448b85 [10064] Fixed recently show up crash in Unit::StopMoving. 2010-06-15 19:14:44 +04:00
VladimirMangos
5b15cd5dd2 [10063] Cleanup recent added code. 2010-06-15 17:19:45 +04:00
Laise
9811858d44 Implement 49220 and ranks 2010-06-15 15:27:08 +03:00
VladimirMangos
b4b45333d8 [10053] Use UNIT_STAT_CONTROLED for mark unit state under direct player control.
* This allow prevent move home/to caster at apply
* Also replace AI and reset movegens at control time
* Also stop combat and clear threat/hostile list at lost control for prevent combat with freindly units.
2010-06-14 10:27:44 +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
virusav
a248a1a32d [10049] Fix SPELL_AURA_MOD_HEALING_DONE healing bonus with 0 misc value
Signed-off-by: Laise <fenrisse@gmail.com>
2010-06-10 12:16:44 +03:00
tehmarto
5ea6815ea1 [10041] Use for spell 49145 and ranks for decrease SPELL_DIRECT_DAMAGE damage.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-06 22:27:16 +04:00
zergtmn
7f8ad96038 [10039] Partly revert [10033] for spell 44394 and ranks related code.
Not all ranks of spell have proper triggered spell info.
Return to old more explicit code.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-06 22:03:05 +04:00
zergtmn
ff2f722f49 [10038] Prevent double triggering heal from 63534 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also use more simple and safe checks for added in [10035].
2010-06-06 21:49:40 +04:00
Insider42
18ffffd379 [10035] Additinal reqs for spell 49219/51459 and ranks triggering.
* Only at melee attack or spell 56815 hit.
* Spell 49219 and ranks also ignore offhand attack.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-06 18:09:37 +04:00
VladimirMangos
ea9dd78d35 [10034] In case unknown triggered spell output more known info for location problem. 2010-06-06 17:55:54 +04:00
VladimirMangos
63018ccc4a [10033] Use sometime stored in spell data triggred spell info for dummy auras. 2010-06-06 17:44:07 +04:00
Laise
f94175f90f [10030] Add aura remove modes for expire and absorb shield break cases and use GetTarget()/GetSpellProto() instead of m_target/m_spellProto 2010-06-05 09:12:00 +03:00
VladimirMangos
59cf9c1dbd [10010] Use schoolmask enum in struct SpellNonMeleeDamage, some indents fix. 2010-05-31 08:09:03 +04:00
Tassadar
4d61fba28f [9987] Restore work talent 12311 and ranks.
Thanks to insider42 for prepare patch for mangos.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-28 00:46:12 +04:00
insider42
5a8c84a2ec [9986] Talent 51459 and ranks affect only melee auto-attacks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-28 00:09:47 +04:00
VladimirMangos
ce85076033 [9981] For non-player at "offline" delete hostile references.
This must fix porblem with call message broadcast from unit destructor.
2010-05-27 14:56:37 +04:00
insider42
fe69843ce7 [9977] Update talent 16180 and ranks work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-26 22:15:06 +04:00
VladimirMangos
c7ea2be1d1 [9962] Modify way 4x damage bonus claculated for spell 1120 and ranks.
* Now apply 4x bonus dependent from target health in time spell cast,
  not from current health in tick.
* 4x bonus applied to own spell damage value, not to total taken damage.
2010-05-23 15:32:13 +04:00
pasdVn
2c396da82b [9961] Restore work talent 18213 and ranks.
Thanks also to insider42 for updating.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-23 15:05:23 +04:00