Commit graph

957 commits

Author SHA1 Message Date
VladimirMangos
5f7fd7a35a [9613] Use stdarg.h instead outdated varargs.h
This must restore build at *nix
2010-03-24 16:01:54 +03:00
tomrus88
4234c685b8 Fix. 2010-03-24 12:43:09 +03:00
tomrus88
292f6189ea Merge remote branch 'origin/master' into 330 2010-03-24 08:33:12 +03:00
VladimirMangos
1186577b56 [9612] Add to SendMonsterMove var args for optional values.
Also drop currently unused Unit::m_InteractionObject
2010-03-24 01:42:00 +03:00
NoFantasy
e11c4b4e03 [9604] Prevent unexpected call to AttackStart when having unit_state stunned/died
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-18 11:34:50 +01:00
NoFantasy
1f7f5955bf [9599] Adding a few research comments for unit_flags and rename one.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-17 02:08:02 +01:00
NoFantasy
9823356946 [9589] 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

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-15 15:47:56 +01:00
tomrus88
654a93d7cd Merge remote branch 'origin/master' into 330 2010-03-15 14:56:52 +03:00
tomrus88
47451b58a6 How this happened? 2010-03-15 14:56:03 +03:00
VladimirMangos
996a523302 [9583] Fixed speed recalculation at remove .mod speed rate while mounted/etc. 2010-03-14 20:55:54 +03:00
laise
bae7d15bb9 [9581] Fixed apply damage reduction to melee/ranged damage.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-13 21:49:20 +03:00
tomrus88
26070c571f Merge remote branch 'origin/master' into 330 2010-03-13 17:52:17 +03:00
VladimirMangos
ab7840a591 [9580] Add ObjectGuid const& Object::GetObjectGuid() and restore build. 2010-03-13 17:35:47 +03:00
tomrus88
086e9fa1ce Merge remote branch 'origin/master' into 330
Conflicts:
	src/game/Player.cpp
	src/game/PlayerDump.cpp
2010-03-13 00:54:13 +03:00
Laise
873b2cab99 [9570] Implement glyph 55692
Signed-off-by: Lightguard <Lightguard@tauri.hu>
2010-03-11 10:27:44 +01:00
Lightguard
acb0c70c74 [9569] Fix spell 60772 2010-03-11 09:14:07 +01:00
tomrus88
e73c5d3b79 Merge remote branch 'origin/master' into 330
Conflicts:
	src/game/Unit.cpp
2010-03-10 20:24:28 +03:00
XTZGZoReX
820550223a [9559] Update AiReaction enum. 2010-03-10 01:57:38 +01:00
KAPATEJIb
c5d43bfd16 [9557] Move the code of glyph 55672 to a better place
Signed-off-by: Lightguard <Lightguard@tauri.hu>
2010-03-09 10:10:53 +01:00
VladimirMangos
c8fd454a79 [9551] Add and use PackedGuid wrapper.
Also
* use more wide bytebuff << >> operators for objects
* use at read packet faisl alsways exception way instead some time used bool results.
2010-03-08 20:23:16 +03:00
VladimirMangos
6487c24f29 [9545] Rename ObjectDefines.h -> ObjectGuid.h
Also move unrelated generic defines to Common.h
2010-03-07 20:05:32 +03:00
Laise
6adebba800 [9537] Avoid proc item 46017 effect from DoTs.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-06 20:57:09 +03:00
Laise
dc7e4b43e7 [9536] Implement item 46017 effect.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-06 20:40:49 +03:00
Sarjuuk
0ca87c50a6 [9523] Stacking Auras from dual wild weapons.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-05 08:38:27 +03:00
VladimirMangos
7fb5d850bf [9510] Gameobject casting improvements.
* Add IsHostileTo/IsFriendlyTo and implement expected way checks for diff. world object types.
  For controlled object check redirected to specific owner, for wild gameobject base at gameobject faction.
  If faction not set expected to be hostile to anyone.
* Update grid searchers to be usable with world object instead only unit case.
  Some grid searches lost redundent second object arg, AnyAoETargetUnitInObjectRangeCheck lost hitHidden arg
  (for hitHidden==true case added new AnyAoEVisibleTargetUnitInObjectRangeCheck)
* Updated grid searchers used with gameobject area casts now.
  Note: Gameobject area spell cast animation will still wrong show around cast triggering target instead
  center around gameobject.
* In case gameobject aura apply to target for restored use target itself as caster because
  we not have currently another way apply aura form wild gameobject.
2010-03-04 07:38:26 +03:00
NoFantasy
d775eea9a4 [9506] Add missing AI calls to inform summoner of summon-related events
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-03 00:25:26 +01:00
KAPATEJIb
6f5d57cd04 [9504] Removed obsolete code for spell 18096 and ranks.
Signed-off-by: ApoC <apoc@nymfe.net>
2010-03-02 22:39:24 +01:00
pasdVn
53623696cc [9503] Updated behavior of auto shot according to the client changes.
Signed-off-by: ApoC <apoc@nymfe.net>
2010-03-02 22:11:35 +01:00
NoFantasy
44d768cac5 [9497] Implement basic use of SPLINETYPE_FACINGTARGET
Adjust related helper function accordingly.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-01 14:13:35 +01:00
VladimirMangos
4dc85260c7 [9482] Implement 48266, and 50365, 50384, 50391 and ranks.
Original patch provided by laise.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-28 17:10:25 +03:00
VladimirMangos
9a51a65b47 [9477] Implement glyph 45776 2010-02-28 08:31:29 +03:00
VladimirMangos
f4f3ae4282 [9476] Add basepoints array to Unit::HandleDummyAuraProc 2010-02-28 08:21:50 +03:00
VladimirMangos
ded1e3c263 [9475] Add and use TotemSlot enum type 2010-02-28 07:31:25 +03:00
pasdVn
1e05a737bd [9456] Fixed spell proc code for mixed proc event cases.
* Allow spells with multiple procEx flags to trigger also with 0 dmg, if current
procExtra is no normal hit (e.g. block and normal hit as flags -> all dmg blocked).

* Also allow proc at hit as result partly block. This fix case from unknown author
  prepered by KAPATEJIb.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-26 02:49:06 +03:00
VladimirMangos
73eeac234f [9454] Fixed some time existed multi-map taxi problem.
Interrupt taxi movegen at far teleport time with remove related state.
Far teleport triggered code not expect this state set.
2010-02-26 00:48:10 +03:00
laise
7f6f199911 [9450] Implement item set 887, 251, 232 spell effects.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-25 06:22:10 +03:00
VladimirMangos
6295275529 [9440] Store in plauer spell list structure instead pointer.
Just not reason in element persistanse storage as std::map
store pointer to structure with size < 16 bits.
2010-02-23 19:11:52 +03:00
tomrus88
32168d697b Updated to 3.3.3.11573 client. 2010-02-23 08:08:33 +03:00
Blaymoira
9e5e0cf3b4 [9429] Fix problems related to SPELL_AURA_MOD_DURATION_OF_EFFECTS_BY_DISPEL and duration reduction of some positive auras
Signed-off-by: Lightguard <Lightguard@tauri.hu>
2010-02-21 16:50:18 +01:00
NoFantasy
67c5e57b0a [9427] Add helper functions for Unit::Get/SetHealthPercent
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-21 11:46:35 +01:00
VladimirMangos
df652c56c0 [9425] More achievement types support.
Implemented new achievement criteria requirement:
* ACHIEVEMENT_CRITERIA_REQUIRE_S_EQUIPED_ITEM_LVL (item level and item quality equiped in specific slot)

Implemented suppoprt achievement types:
* ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM (required DB data)
* ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL (required DB data)

Also achievment types used only for statistics:
* ACHIEVEMENT_CRITERIA_TYPE_CREATE_AUCTION
* ACHIEVEMENT_CRITERIA_TYPE_WON_AUCTIONS
* ACHIEVEMENT_CRITERIA_TYPE_MONEY_FROM_VENDORS
* ACHIEVEMENT_CRITERIA_TYPE_GOLD_EARNED_BY_AUCTIONS
* ACHIEVEMENT_CRITERIA_TYPE_LOOT_EPIC_ITEM
* ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM
2010-02-21 03:20:26 +03:00
NoFantasy
04e6187049 [9417] Correct spelling of horizontal.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 00:59:59 +01:00
VladimirMangos
233e75ab4b [9415] Dome not catched cases for MAX_EFFECT_INDEX use. 2010-02-19 19:57:07 +03:00
VladimirMangos
84080aaf60 [9411] More SpellEffectIndex using in apropriate cases 2010-02-19 06:45:11 +03:00
VladimirMangos
ff8d494ed4 [9408] Add MAX_EFFECT_INDEX to enum SpellEffectIndex and use it. 2010-02-18 23:33:16 +03:00
VladimirMangos
5af05a314e [9405] Make all movements instant applied.
* Drop delayed moves list in Map code
* Apply movement coords update always at call including movement to different cell/grid.
* Instead removed functionality mark creature as need move notify broadcast at next tick, do it.

This must resolve porblesm with CreatureRelocation in past not always update position to new expected at call
And in resul next code fail or work in strange way. Mark creature for notifier call at next Update
let safe main part remopved functionality implemented in another way: prevent cascade (or infinity chain)
in move updates. In fiture possible implement move notify call not at each tick for save time.
2010-02-18 01:09:33 +03:00
NoFantasy
7c555add76 [9403] Replace number with enum name where explicitly used in array/other checks
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-17 19:07:00 +01:00
VladimirMangos
54559b5c03 [9401] Resolve porblems with waypoints moved/etc after [9400]
* Move movegen Interrupt/Reset calls from CreatureRelocation that called and from another movegens.
* Add this called to NearTeleportTo creature case and new MonsterMove* functions that considered
  as special moves similar instant movegens.
* NearTeleportTo/MonsterMove functions recomended used instead explicit use CreatureReolcation+SendMosterMOve pairs
  for proper reaction at movement from creature movement generators.
2010-02-17 17:22:43 +03:00
VladimirMangos
f9db93e78b [9397] Fixed unexpected rounding in healamount = healamount * int32(TakenTotalMod); 2010-02-16 00:28:12 +03:00
AlexDereka
ebfb0f9835 [9389] Cleanup config data. Use proper names and expected types. 2010-02-15 15:29:06 +03:00