Commit graph

464 commits

Author SHA1 Message Date
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
VladimirMangos
96202d7dfd [9345] Show enchantment applied to item in trade slot to caster after apply.
Also more strictly check cases when in spell targets presetn item in trade slot.
2010-02-10 03:48:20 +03:00
VladimirMangos
5a7eb09bd2 [9326] Restore code style after [9286], [9322]. 2010-02-08 06:14:33 +03:00
AlexDereka
4338c9105d [9324] Fix some gcc warnings 2010-02-08 02:27:34 +03:00
VladimirMangos
2a01c79609 [9323] Fixes in code work with original caster guid.
* Add 2 function for 2 used way for original caster
  - GetAffectiveCaster(), is posible NULL unit as source spell affects
    (explcit caster, GO owner, caster of aura that trigering affect)..
  - GetCastingObject(), possible NULL world object as in game spell effects
    source, cast center, etc, need because original caster can store GO
    guid that apply effect around. In other cases m_caster
* Use functions and avoid use explicitly m_originalCaster
* Use GetAffectiveCaster() for fix explicit GO cast at near unit, like now fixed campfire bonus.
2010-02-08 00:53:03 +03:00
Marik
a8de1c0ad4 [9322] Fix spell 69378 and 69381
Signed-off-by: Lightguard <Lightguard@tauri.hu>
2010-02-07 15:58:52 +01:00
tomrus88
db547a008a Get rid of monster movement flags, since it's really spline flags.
Thanks to Ralek for research.
2010-02-07 15:03:36 +03:00
VladimirMangos
87a35b0489 [9317] Call linkedtrap summon in more cases.
* GAMEOBJECT_TYPE_BUTTON can have linked traps
* Spell::EffectSummonObject also can summon objects with linked traps

Thanks to patman128 for research second case.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-07 02:51:45 +03:00
[D4RK]Doom-Lord
bc160bd04f [9298] Implement affect glyph 41533, talent 16187 and ranks to 5394 and ranks healing.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-04 02:29:38 +03:00
reno138
f157b101fb [9294] Fixed typo in function name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-03 22:43:22 +03:00
Lightguard
af3aced775 [9286] Fix spell 69377 2010-02-02 20:22:18 +01:00
VladimirMangos
60f8b3874d [9281] Fixed client ignore spell 1464 and ranks in combat log. 2010-02-01 14:01:44 +03:00
VladimirMangos
904995c024 [9274] Implement SPELL_EFFECT_SUMMON_ALL_TOTEMS
This implement work spells 66842, 66843, 66844.

Patch originall writed by Arthorius, with additional fixes from darkstalker
and hack removes from me.
2010-01-31 18:40:59 +03:00
laise
9aedd3a864 [9273] Implement item 49623 triggered stacking affect.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-31 05:36:59 +03:00
Wowka321
f7b8f09bac [9251] Restore work spell 31687 and implement work glyph 50045.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-24 19:06:12 +03:00
lutik
aab870f9b5 [9236] Set damage division for spells 70492, 72505, 72624 and 72625
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-21 23:54:23 +01:00
VladimirMangos
e1d0c1cdba [9209] Finish synchonization walk mode for pets.
* Re-sync at follow mode switches
* Support sync for creature pets

Also
* Attempt fix build at *nix
* Drop unused unut state mask with typo in name.
2010-01-18 14:35:19 +03:00
VladimirMangos
6a2e8064f1 [9208] Big cleanup in UNIT_STAT_* use
* Re-number enums by function groups and use where possible new defined masks in code instead raw enum |-lists.
* Avoid use movement generator generic state markers like UNIT_STAT_CONFUSED for mark movement stoped.
  Add special shadow UNIT_STAT_CONFUSED_MOVE/etc states for like use.
  UNIT_STAT_CONFUSED in like case will be safe expect use for normal checks confused state presence
  And UNIT_STAT_CONFUSED_MOVE for check real move in this state
2010-01-18 11:59:10 +03:00
NoFantasy
544d396beb [9205] Move script call GOHello to GameObject::Use
This provide more accurate call in case of delay use from spell effects

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 23:44:33 +01:00
NoFantasy
16c0ff3ef7 [9204] Move remaining handling of GO from SendLoot to GameObject::Use
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 23:06:31 +01:00
NoFantasy
925ea7630e [9203] Use CalculateSimpleValue as delay, used in spell effect 86
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 17:05:54 +01:00
NoFantasy
95f9ec5fb2 [9200] Move handling of most GO's from SendLoot() to GameObject::Use()
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 11:45:14 +01:00
VladimirMangos
2e9bf5ad6a [9197] More propertly update walk mode for player pets.
* Use AddMonsterMoveFlag instead SetMonsterMoveFlags for set walk-mode
* Apply walk/run mode to all copntrolled units (except totems).
* Synchronize walk/run mode at pet creating/loading.
2010-01-17 07:51:00 +03:00
VladimirMangos
0a1dd54b7f [9193] Implement dummy effect for 46797. 2010-01-16 22:55:00 +03:00
VladimirMangos
cc062f16ac [9187] Fixed problem with non-attackable pes/totems at arenas
... and other FFA areas. Problem is result chnages in related flags work after old 3.x switch.

* Added high-level functions for FFAPvP state set for unit
* Apply FFA PvP to all controlled units also at set, and at summon/load
2010-01-16 05:41:42 +03:00
NoFantasy
dbf0fafbfe [9182] Replace 0 with NULL in a few CastSpell calls (removed where not needed)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-15 01:43:02 +01:00
NoFantasy
0d6b7f144c [9181] Rewrite parts of GameObject use for GO type 10
This implement using autoclose time for type 10 and also sending a custom animation for some.
To avoid duplicate code, remove code from SendLoot() (handled in Use() instead)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-15 01:23:45 +01:00
KAPATEJIb
799919edc5 [9153] Use in code heal amount calculation for 20165.
Thanks to MrLama for small cleanups and patch updating.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-12 06:00:01 +03:00
KAPATEJIb
171a2e02d7 [9150] Fixed some paladin spell bonuses
* Use stack size in additional spell damage for 31803/53742.
* Use in code calculation for additional spell 20187/20375 damage

Thanks to MrLama for small cleanups and patch updating.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-12 02:30:15 +03:00
KAPATEJIb
73a368d64a [9149] Drop code and DB data for removed 31892/53720 and related spells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-12 01:08:17 +03:00
VladimirMangos
cf8b2f660c [9148] Revert "[9042] Remove double apply bonuses for spell 635/31935 and ranks"
* This reverts commit 2157bc1b2fb064bd6bf0dfa5b4152d13760450c5.
* And drop DB bonus data.

Thanks to MrLama and pasdVn for reseach problem.
2010-01-12 00:15:40 +03:00
tomrus88
a8b04f09e0 Compile fix. 2010-01-09 21:47:16 +03:00
VladimirMangos
57f495de35 [9130] Implement spell 48603 script effect.
Also apply some ordering to existed spell cases code.
2010-01-09 05:07:25 +03:00
frcoun
352c3811b2 [9125] Add dummy effect of spell 46167
SQL update included to ensure proper work (if database has existing data)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-08 00:20:38 +01:00
VladimirMangos
fe6e2e1746 [9122] Updated copyright notice for new year.
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
frcoun
147c250a56 [9121] Implement dummy effects for spell 50926,51026,51592 and 51961
Note: Some adjustments in addition to original patch, using delay despawn.
Also provide sql update for proper work of affected spells (if already exist in database).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-07 21:34:43 +01:00
NoFantasy
e568293d2c [9106] Add script effect for spell 47097
Also add areaflag hack to detect correct areaId

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-03 03:37:02 +01:00
awpolt
4b0ceaeb6b [9092] Fixed typo in function name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-01 14:08:59 +03:00
NetSky
2087aa2876 [9091] Add max targets limit for spell 34861 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also implement glyph 42396 work for referenced spells.
2009-12-31 19:18:38 +03:00
VladimirMangos
7d0a830bd4 [9076] Another SPELL_EFFECT_PLAYER_PULL problem fix.
If base points porvided then this is _max_ pull distance, not direct distance.
2009-12-27 23:47:47 +03:00