Commit graph

5437 commits

Author SHA1 Message Date
Schmoozerd
883e88fad5 [10956] Implement support triggered spells in SCRIPT_COMMAND_CAST_SPELL
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-04 04:15:47 +03:00
thenecromancer
9174e5d085 [10955] Fixed MSG_PVP_LOG_DATA data prepering.
Thnaks to Lightguard for not let this patch lst and prepare to recent sources.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-04 03:34:44 +03:00
VladimirMangos
9cdafee907 [10954] Drop not help clarify code comments. 2011-01-03 19:54:27 +03:00
VladimirMangos
2f7db4801e [10953] Add changes from [10949] to mangos.sql 2011-01-03 15:20:59 +03:00
VladimirMangos
a0e298179c [10952] Don't use singleton to access static functions. 2011-01-03 14:55:55 +03:00
Lynx3d
32649abe6b [10951] Add some missing spell_proc_event entries for set bonuses.
- set 898, 4 pieces
- set 891, 2 and 4 pieces
- set 889 and set 901, 4 pieces
2011-01-03 01:07:30 +01:00
VladimirMangos
9ae7104251 [10950] Check for scripting lib that it build with exactly same mangos rev.
This prevent use outdated script DLL with hidden possible incompatibilities
in used from core inline functions  or defines.
2011-01-02 20:19:21 +03:00
NoFantasy
0da3463758 [10949] Fix the word accessable -> accessible in log message
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-02 01:30:21 +01:00
VladimirMangos
20e7cdb55e [10948] Fixed typo in enum names 2011-01-02 00:23:56 +03:00
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00
siduskana
984f690e71 [10946] Drop redundent spell_proc_event data.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-01 18:50:50 +03:00
VladimirMangos
84b5ee3b43 [10945] Restore check scripting lib API at load.
Also report result of script library load/reload to chat/console.
2011-01-01 18:39:09 +03:00
Lynx3d
d4018322b9 [10944] Lock action buttons before unlearning talents on spec switch.
This prevents client from automatically requesting removal of buttons that use unlearned spells.
2010-12-31 00:54:12 +01:00
VladimirMangos
cb1e82d663 [10943] Fixed mangos.sql after rename table to game_event_creature_data 2010-12-31 00:27:37 +03:00
VladimirMangos
7a2478ff4f [10942] Implement .reload npc_text. 2010-12-30 23:41:54 +03:00
VladimirMangos
16768da053 [10941] More strict check player race/class allowed values. 2010-12-30 06:53:06 +03:00
VladimirMangos
b325e93538 [10940] Apply mangos code style to in class {} indent. 2010-12-30 04:11:05 +03:00
VladimirMangos
afdfdf6559 [10939] Check non-unit target case for avoid crash in EffectQuestComplete. 2010-12-30 03:20:39 +03:00
zergtmn
0b7e78d2a7 [10938] Some adjustments to script calls OnQuestChooseReward replaced with OnQuestRewarded. Also fix compile in VC 8.0 and VC 9.0. 2010-12-30 01:27:13 +05:00
NoFantasy
14c8db9c9a [10937] Add models for spell aura 50517 and 51926
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-29 21:18:39 +01:00
Unid
7d41f3fadf [10936] Correctly show online status of 1.12.1 realms
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-29 20:50:20 +03:00
zergtmn
ec6089bbd8 [10935] Move script calls to ScriptMgr
- Script library presence is now optional.
- Some script hooks have new names. Scripting libraries need to be adjusted accordingly.

Signed-off-by: zergtmn <zerg@myisp.com>
2010-12-29 21:48:06 +05:00
VladimirMangos
918e646ca2 [10934] Implement dummy effect of spell 7671.
Thanks to X-Savior for reserch.
2010-12-29 05:05:59 +03:00
VladimirMangos
26370b8df7 [10933] Fixed crash at modified data from client at trainer spell learn. 2010-12-29 02:49:03 +03:00
VladimirMangos
d38df50a7e [10932] Imporvments gameevent creature morphing.
* Table `game_event_model_equip` renamed to `game_event_creature_data`
* Table allow now store same creatures for different events, BUT
  expected that related events no active in same time.
* Added possibility switch entry at gameevent time.
  This let have diff factions/loot and etc for creatures.
* Added possibility cast spells at gameevent start/end.
  Exist some spells that expected casted to creature at gameevent start
  for model replace, and for animation in other cases.

Note: `game_event_creature_data`.`modelid` field posisble will removed soon in fowor related spell use.
      Ofc, when spells will implemented in core.
2010-12-29 01:38:49 +03:00
Ambal
e52ebaf7a9 [10931] Fix mangos build with old ACE libraries after [10924].
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-12-28 23:38:58 +02:00
NoFantasy
dfa30a495d [10930] Add models for spell 65528 and 65529
Add spells in commented form that will need custom handling in similar way for the same aura effect.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-28 21:03:34 +01:00
VladimirMangos
3ff5ff2e6f [10929] Move game event creature morphing code to Creature::UpdateEntry
* This is allow have more clean logic in feature work.
* Prevent modify static creature data.
2010-12-28 22:52:40 +03:00
NoFantasy
f8921dbca8 [10928] Uncomment all races in enum Races
Race can also be creature race and needed for future implementation of spells.
RACE_UNDEAD_PLAYER renamed to more proper RACE_UNDEAD

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-28 19:53:01 +01:00
zergtmn
d400f00224 [10927] Prevent null-pointer dereference in AI calls 2010-12-28 22:09:25 +05:00
NoFantasy
1031f3b5d2 [10926] Remove player-only limit for HandleAuraTransform where miscvalue is 0
Add error output for unhandled spells plus minor code cleanup

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-28 11:57:50 +01:00
zergtmn
6a8f83379f [10925] Few more vehicle flags
All vehicles with these flags have corresponding movement flags.
2010-12-28 02:31:09 +05:00
Ambal
b11820593c [10924] Send time diff between Update() calls for object - should help with mob respawn on inactive grids etc. Based on patches by VladimirMangos and cipherCOM. All issues from previous patches should be finally fixed now.
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-12-27 22:27:20 +02:00
zergtmn
72b1d30a1c [10923] Cleanup some magic numbers 2010-12-27 19:04:59 +05:00
VladimirMangos
3c58f25ad9 [10922] Revert "[8722] Fixed possible creash."
This reverts commit 8dd3e4b31a31bb6dfc4d9fb51b1b7e67bad4ca16.

This is impossible crash case. Creature object can't be created without creatureInfo != NULL
So crash source can be only result wrong calling ClearInCombat() for deleted or NULL creature.
2010-12-27 05:07:31 +03:00
VladimirMangos
246126d7b4 [10921] Allow from mute player chat messages CHAT_MSG_AFK and CHAT_MSG_DND. 2010-12-26 03:14:33 +03:00
VladimirMangos
1b4477164c [10920] Prevent server freeze at strnage radisu used by item 34124 spell cast 2010-12-24 21:21:19 +03:00
zergtmn
14c1329ea5 [10919] Actually use spell penetration gained by items in calculations 2010-12-24 21:18:23 +05:00
Astellar
a13f8714f2 [10918] Add support for ITEM_MOD_SPELL_PENETRATION
Signed-off-by: zergtmn <zerg@myisp.com>
2010-12-24 19:48:27 +05:00
insider42
5f4dcbbe93 [10917] Allow SPELL_AURA_MOD_PACIFY auras to affect creatures
Signed-off-by: zergtmn <zerg@myisp.com>
2010-12-24 19:45:07 +05:00
zergtmn
f7d58220a5 [10916] Implement dummy aura for spell 75973 2010-12-24 18:48:34 +05:00
VladimirMangos
e2a8c3a119 [10915] Restore GameEvent system work after last Map terain rewrite. 2010-12-24 15:45:41 +03:00
VladimirMangos
d1b0e5b40f [10915] Use HasFlag function for check flags instead raw access. 2010-12-24 05:38:48 +03:00
Ambal
f56e13966f [10914] Remove ObjectLevelLockable inheritance in Map class + cleanup locks in Map code. Restore build after recent commits.
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-12-24 01:23:02 +02:00
zergtmn
8f37314950 [10913] Fix db_script_string loading 2010-12-24 00:46:07 +05:00
zergtmn
0d6f990e4e [10912] Move scripting related functions from ObjectMgr to ScriptMgr 2010-12-24 00:23:37 +05:00
zergtmn
f61166c2bf [10911] Fix GCC warning 2010-12-23 23:31:31 +05:00
KiriX
b6c50838a3 [10910] Use provided target instead of caster for SPELL_EFFECT_QUEST_COMPLETE
Signed-off-by: zergtmn <zerg@myisp.com>
2010-12-23 21:03:14 +05:00
zergtmn
a1e0111638 [10909] Code style cleanups in scripting related functions 2010-12-23 19:01:30 +05:00
VladimirMangos
a84d67a389 [10908] Imporve detection need use reagents by triggered spell.
Now regagent used if main spell (if infor about provided to triggered cast)
not have regent data.

This fix reagetn use for spell 43723. But maybe need another fixes for proper animation.
2010-12-23 00:58:21 +03:00