Commit graph

498 commits

Author SHA1 Message Date
NoFantasy
fab9a3ae96 [9913] Fix TARGET_SCRIPT searcher and also look for objects that are Pet*
Pet (guardian, mini-pet) may also be the target of TARGET_SCRIPT, and are not considered a grid object.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-16 09:29:49 +02:00
LordJZ
ad1926585e [9907] Make comment really proccessed by doc generator.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-16 03:32:59 +04:00
Laise
0344a8e838 [9888] Party restore IsKnowHowFlyIn and add area arg 2010-05-13 15:15:46 +03:00
Laise
a002f22916 [9887] Fix special mounts using in Dalaran 2010-05-13 14:42:55 +03:00
Laise
188db9691f [9884] Code style fixes thx to hunuza & Wowka321 2010-05-12 17:43:15 +03:00
Laise
41c58f3be9 [9882] Add support for mounts dependent from riding skill and location 2010-05-12 13:34:10 +03:00
VladimirMangos
d04dd4e5bf [9876] Fixed TARGET_ALL_FRIENDLY_UNITS_AROUND_CASTER work
TARGET_ALL_FRIENDLY_UNITS_AROUND_CASTER expected seelction friendly targets
for spell caster around spell caster (so ignore original caster faction).
This meaning that for begative spell also selected friendly targets for
spell caster object.
2010-05-12 03:33:06 +04:00
Laise
5a572b9991 [9875] Fix immunity ignoring for delayed spells 2010-05-11 22:35:39 +03:00
VladimirMangos
b36cc9b258 [9871] Implement movement impairing effects for spell 58875.
Original part suggested by Insider42.
2010-05-11 14:08:17 +04:00
MaS0n
4e8c18e9de [9863] Implement SPELL_EFFECT_BREAK_PLAYER_TARGETING (93)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-11 08:09:41 +04:00
VladimirMangos
6fb07911f9 [9862] Defines for some spelentry arrays.
* Move and rename MAX_REAGENTS to DBC Strcuture.h.
  It used only afore access to SpellEntry field and so part of strcuture definition.
* Add MAX_SPELL_TOTEMS and MAX_SPELL_TOTEM_CATEGORIES for same reasons, and use in code.
2010-05-11 00:06:47 +04:00
tomrus88
ff2cda6af1 [9861] Backporting some code chnages from 400 branch.
(based on 400's commit 0f37423)
(based on 400's commit 636cfef)
(based on 400's commit 0bbe3a7)
(based on 400's commit ce86b56)
(based on 400's commit b74c6a8)
2010-05-10 23:45:49 +04:00
VladimirMangos
921b0d668f [9850] Fixed target selection for area spells casted from aura at enemy.
* Spell::GetCastingObject must be use for selection visual/point cast,
  not for friend/enemy checks. Add extanded GetAffectiveCasterObject
  for proper provide for referecned checks wild gameobject casted case.

* Also support chain damage spells casted by gameobjects.
2010-05-08 01:21:41 +04:00
hunuza
68abd76c97 [9844] Fix some whitespace errors.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-05-07 12:25:12 +02:00
NoFantasy
de95b8ad5f [9842] Remove a line of whitespace
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-06 10:02:14 +02:00
Laise
91572b1e01 [9841] Really fix invisible target selection for TARGET_AREAEFFECT_CUSTOM 2010-05-06 10:54:08 +03:00
Laise
432b1b8b38 [9839] Fix shadow damage part of 55090 and ranks 2010-05-05 17:51:39 +03:00
VladimirMangos
722135b326 [9838] More log filters and macro uses.
* LogFilter_Weather
* LogFilter_PeriodicAffects
* LogFilter_PlayerMoves
* LogFilter_SQLText
* LogFilter_AIAndMovegens
* LogFilter_PlayerStats
2010-05-05 18:46:10 +04:00
Laise
6726a08b48 [9835] Fix broken compilation after [9831]. Thanks to VladimirMangos. 2010-05-04 19:52:08 +03:00
Laise
8a4b520979 [9833] Allow TARGET_AREAEFFECT_CUSTOM to target invisible/not targetable npc if script target for them exists 2010-05-04 15:05:29 +03:00
Laise
577812ff6e [9828] Fix TARGET_AREAEFFECT_CUSTOM 2010-05-03 11:14:55 +03:00
Laise
5902f6cf77 [9792] Fix wrong damage dealing from commit [9784] 2010-04-25 07:15:56 +03:00
VladimirMangos
0cbcfef0fb [9790] No reason lost time at other checks if spell diff id not provided. 2010-04-24 23:05:04 +04:00
Laise
51546e1ff9 [9789] Implement spell selection, for creatures in instances, based on map difficulty 2010-04-24 20:08:18 +03:00
Laise
10b65dcf8f [9784] Move damage and crit calculation for certain effects of spells with delayed hit to spell launch 2010-04-23 19:53:51 +03:00
Laise
d1dd6a8ca3 [9782] Small clean up in 2 method names 2010-04-23 16:05:41 +03:00
Laise
5b56c321c8 [9757] Add triggered spell(strength buff) for 71904 2010-04-18 10:47:47 +03:00
Laise
6610484609 [9754] Rename flight speed related auras and fix spell 40120 2010-04-16 17:54:58 +03:00
SilverIce
e3f3f3410a [9736] Added more usable interface for grid visits
(based on SilverIce's repo commit f20f01e)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-12 15:15:55 +04:00
przemratajczak
35fbdd90f3 [9734] Removed outdated code for 33702,33697,20572
Signed-off-by: Laise <fenrisse@gmail.com>
2010-04-12 11:54:56 +03:00
Ceris
06378778e8 [9733] Make Replenishment only affect its caster in arena
Signed-off-by: Lightguard <Lightguard@tauri.hu>
2010-04-12 10:41:08 +02:00
VladimirMangos
53486545b5 [9701] Fix basepoints calculation
Signed-off-by: Laise <fenrisse@gmail.com>
2010-04-08 23:15:48 +03:00
tomrus88
a4a56adf3d Quests and combopoints should work once again. 2010-03-31 16:23:52 +04:00
tomrus88
f2572fdda0 Merge remote branch 'origin/master' into 330 2010-03-31 02:29:02 +04:00
XTZGZoReX
34e56c9978 [9641] Fix typo; IN_MILISECONDS -> IN_MILLISECONDS. 2010-03-30 14:44:57 +02:00
tomrus88
4c8dd37612 Merge remote branch 'origin/master' into 330 2010-03-30 13:06:34 +04:00
VladimirMangos
d7c1e06d1b [9636] Move item real-time/in-game duration counting flag to new extraflags field.
Client expected only positive duration values, so stop use duration field as signed.
2010-03-29 09:52:59 +04:00
tomrus88
dd3d5eec69 Updated to client build 11723. 2010-03-27 03:50:35 +03:00
VladimirMangos
b658b25ff8 [9618] More use ObjectGuid in spell/etc code 2010-03-25 13:59:46 +03:00
VladimirMangos
ab7840a591 [9580] Add ObjectGuid const& Object::GetObjectGuid() and restore build. 2010-03-13 17:35:47 +03:00
VladimirMangos
8416702d7c [9579] Use ObjectGuid in some loot code.
Also use ObjectGuidSet instead std::set<ObjectGuid>
2010-03-13 14:06:27 +03: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
NoFantasy
c5fc08934d [9546] Less strict check in spell CheckTarget, and allow triggered spell.
Unit may be not selectable, but spell may be expected to target this unit in any case.
Mostly known problem with npc->npc spells and dummy/triggered spells from AI side.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-07 21:39:24 +01:00
przemratajczak
8e9063ed80 [9538] Implement proper work spells 59465 and 56151.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-06 21:13:37 +03:00
NoFantasy
81c6f3ff9b [9533] Use selected target for target mode 38/46 when provided.
For cases where provided target is not valid (or not provided), normal closest in range will be used.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-06 16:36:05 +01:00
VladimirMangos
3cf9e47110 [9530] Fixed check for SPELL_AURA_ALLOW_ONLY_ABILITY
Also remove public access to SpellAura::m_spellmod for avoid another hacks
with it use. Spellmods only for Player::ApplySpellMod use.
2010-03-06 07:58:09 +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
VladimirMangos
52701a58f6 [9509] Move custom data from item spell charges sign to new field NoConsumable.
Some items with negative by defaul charges not expected to be deletedt at no charges.
In past this fixed by using positive charges amount in like cases in different from
expected negative value. Adding new field for avoid this.
2010-03-03 09:14:09 +03:00
VladimirMangos
84e5f7520b [9508] Finish impement new functionlity for item 5513 and similar.
* Implement recharge low rank item in inventory.
* Implement recharge item at loading after 15 offline mins
2010-03-03 07:36:00 +03:00
VladimirMangos
4c4629e861 [9507] Implement SPELL_EFFECT_RESTORE_ITEM_CHARGES
Also it application in special case of item 5513 and similar.
2010-03-03 06:02:32 +03:00