Commit graph

703 commits

Author SHA1 Message Date
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
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
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
VladimirMangos
c71f79584d [9501] Implement item limit category inventory mode.
* Now expected item limit categories (for example for item 5513 and related)
  correctly limited by its amount in inventory.
* Provide and use additional arg in SendEquipError for alt. way get affected
  item prototype. This let send to function item id and prevent crash client at
  limit category equip errors that required item prototype data.
2010-03-02 14:10:38 +03:00
VladimirMangos
52ace6bcb7 [9500] More speel effects table cleanups in comments 2010-03-02 11:42:07 +03:00
VladimirMangos
4a051e2443 [9496] HomeBind fixes.
* Use area id instead zone id for home bind zone info as expected.
  This will for example proper show capital name in area himebinding for capital; tavern.
* Clarify that player create zone in fact is area (subzone)
* Implement SPELL_EFFECT_BIND for normal homebinding.
  Also support spell target position mode used in 53823/53821 spells
* Add Spell::EffectEmpty for mark spell effects that used but not expect any code in handler.
  Example weapon spells that used just as known spell markers for client.

Original patch idea inspirit by Sadikum patch suggestion.
2010-03-01 13:08:52 +03:00
qsa
827d47a211 [9494] Implement SPELL_EFFECT_JUMP (41).
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-01 08:37:42 +03:00
VladimirMangos
7ecd5365b9 [9492] Some cleanup in effects table. 2010-03-01 06:43:02 +03:00
NoFantasy
ae7f6de936 [9481] Add dummy effect of spell 51276
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-28 13:56:57 +01:00
VladimirMangos
ded1e3c263 [9475] Add and use TotemSlot enum type 2010-02-28 07:31:25 +03:00
NoFantasy
76a1843bdd [9471] Add dummy effect of spell 43036
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-27 16:52:42 +01:00
NoFantasy
3102858312 [9470] Add dummy effect of spell 42287
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-27 15:34:39 +01:00
NoFantasy
b91bd9ef83 [9469] Add dummy effect of spell 51333 2010-02-27 14:20:10 +01:00
NoFantasy
c41dfaaef3 [9467] Add dummy effect of spell 51330
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-27 12:36:19 +01:00
NoFantasy
fc08496048 [9463] Add script effect of spell 45691 and dummy effect of 45685
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-27 01:58:23 +01:00
ApoC
a421990a5b [9462] Compile fix under GCC.
Signed-off-by: ApoC <apoc@nymfe.net>
2010-02-26 23:58:47 +01:00
MrLama
b57f4a179b [9459] Make spell 47540 and ranks channeling interruptible
In fact make triggered spell replace main spell for channeling.
This also let drop hack for target death case interrupt channeling for spell.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-26 22:37:45 +03:00
NoFantasy
09b4acc53e [9458] Add exception for spell 51912 and then trigger 45668 as expected
Also remove commented code for spell 45668

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-26 19:55:53 +01:00
laise
ac99fa4d6f [9453] Implement heal bonus from talent 62905 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-26 00:33:57 +03:00
NoFantasy
9f3b42d8ee [9443] Add dummy effect of spell 55818
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-24 01:48:40 +01:00
NoFantasy
5b6c0566ae [9442] Add dummy effect of spell 44454 and script effect of spell 44455
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-24 01:17:22 +01:00
NoFantasy
b56a088d6d [9441] Add dummy effect of spell 50133/43882
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-23 18:37:27 +01: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
NoFantasy
2475c4aa00 [9438] Add base code of effect for spell 45668, but in commented form.
The spell triggering 45668 need to be corrected before it can trigger this as expected.
2010-02-23 02:34:02 +01:00
NoFantasy
548a656a76 [9431] Remove dummy effect (old code and wrong) of spell 34665
Let script handle dummy effect like expected for this type.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-22 16:49:07 +01:00
NoFantasy
8bb13412e5 [9424] Some code/comments cleanup in EffectScriptEffect
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 19:02:06 +01:00
NoFantasy
6c44c6f5a7 [9423] Implement dummy effect of spell 46485
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 18:35:39 +01:00
VladimirMangos
b2019913d4 [9422] Return success result for Zone<->map coordinates convertions.
This will prevent #INF-inity values in gps for zones where
zone coordinates calculation impossible with current code.

Also fix small typo in debug output format for honor
2010-02-20 17:50:37 +03:00
NoFantasy
a916e31316 [9421] Some code cleanup in EffectDummy, also correcting order of spell id
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 14:53:05 +01:00
NoFantasy
e8c2d62c19 [9420] Implement aura dummy effect for spell 35357
Also adjusting dummy spell 45990 slightly, despawn after some time instead of die instantly.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 14:24:04 +01:00
X-Savior
f9a5d37bf6 [9419] Implement dummy effect of spell 45990
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 10:33:57 +01:00
NoFantasy
828014dba1 [9418] Implement dummy effect of spell 45980
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 09:08:57 +01:00
NoFantasy
61556d8ff0 [9416] Implement dummy effect of spell 46606
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-20 00:03:09 +01:00
VladimirMangos
233e75ab4b [9415] Dome not catched cases for MAX_EFFECT_INDEX use. 2010-02-19 19:57:07 +03:00
VladimirMangos
231720c10f [9414] Some lost changes for prev. commit. 2010-02-19 17:54:49 +03:00
VladimirMangos
84080aaf60 [9411] More SpellEffectIndex using in apropriate cases 2010-02-19 06:45:11 +03:00
VladimirMangos
11b84d27c2 [9409] Use SpellEffectIndex as arg type for spell effect handlers. 2010-02-19 01:06:17 +03:00
VladimirMangos
ff8d494ed4 [9408] Add MAX_EFFECT_INDEX to enum SpellEffectIndex and use it. 2010-02-18 23:33:16 +03:00
VladimirMangos
e74f62ea31 [9404] Fixed glyph apply with with specs.
This resolve problem when glyph rejetect applied
at some spec if it applied already at another spec.
2010-02-18 00:59:11 +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
AlexDereka
ebfb0f9835 [9389] Cleanup config data. Use proper names and expected types. 2010-02-15 15:29:06 +03:00
AlexDereka
ccfd42bf3e [9381] Fixed some compile warnings. 2010-02-14 18:16:07 +03:00
laise
853d43b12b [9369] Proper secondary target damage for spell 55050 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-14 00:11:20 +03:00
laise
f272aa8d1a [9365] Implement spell 31226 and ranks in non-consume poison part.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-12 15:53:41 +03:00
laise
6fbe7f4307 [9363] Implement new way spell 1535 and ranks work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also implemented spell casting requirement check and proper animation.
2010-02-12 11:00:05 +03:00
VladimirMangos
268bb3221b [9362] Make specs work at least for action bars
* Propertly add/remove required for specs work spells at 63624/63651.
* Copy current spec action bars to new spec at specs count increase, and delete action bars data at spec count decrease.
* Avoid undexpected action button data test for not active spec at loading/copy, but test action buttons data at spec activation.
* Reset active spec to default if active spec removed.
* Remove talent reset at spec switch that useless at this moment.
  Also note that for future case this also can be not correct and batter unlearn/learn only talents that different in specs.

After this changes specs must fully work in action bar part without unexpected another effects.
2010-02-12 09:29:50 +03:00
pasdVn
5d59f03b25 [9360] Fix the damage of spell 53351 and ranks
Signed-off-by: Lightguard <Lightguard@tauri.hu>
2010-02-12 06:43:45 +01:00
hunuza
0f7f7c5ada [9354] Add spell efffects for dual spec.
Actual dual spec still not implemented.

Credits to EnderGT for original patch.

Signed-off-by: hunuza <hunuza@gmail.com>
2010-02-10 20:54:45 +01:00