Commit graph

3724 commits

Author SHA1 Message Date
Laise
a9c47d0dba [10524] Fix compilation for UNIX-likes 2010-09-23 20:08:04 +02:00
michalpolko
7337e0cd24 [10523] Fix proc from periodic crits
Signed-off-by: Laise <fenrisse@gmail.com>
2010-09-23 15:13:20 +02:00
Laise
daf7041231 [10522] Fix periodic procs - spells that require periodic healing to proc need to be defined in spell_proc_event with procEx PROC_EX_PERIODIC_POSITIVE, by default all procs without it are negative 2010-09-23 14:27:26 +02:00
Laise
cc16743074 [10521] Fix iterator update, thanks to VladimirMangos 2010-09-23 11:11:35 +02:00
virusav
9f2e36c7f0 [10520] Implement CONDITION_QUEST_NONE
For case when need check that quest not taken and not completed in past.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-23 12:33:43 +04:00
Laise
5d8cd04f97 [10519] Fix delaying spell with 2 or more persistent area auras and store ObjectGuid instead of Unit* on DynamicObject affected set 2010-09-23 10:10:34 +02:00
VladimirMangos
14127b4d08 [10518] Prevent emotes animation in feign death state.
In 3.x this has been posisble only with cheating tool.
2010-09-22 22:52:49 +04:00
NoFantasy
fa9c6e2e61 [10517] Remove wrong comment, reputation rate for spell is implemented.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-22 10:23:45 +02:00
NoFantasy
c10a983c60 [10516] Fix small typo in class ExplodeCorpseObjectCheck
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-22 09:12:47 +02:00
VladimirMangos
4ecc54707f [10515] Default value set line lost 2010-09-22 07:50:00 +04:00
VladimirMangos
e3d7b114c6 [10514] New option PetUnsummonAtMount
Make possible disable pet unsummon for non-fly mounts (1.x way work)
2010-09-22 07:40:39 +04:00
VladimirMangos
b0edd807d7 [10513] Clear grid *Check/*Searcher clases use
* Check class considered have all info select  object in world from suggested but grid walker list in some grid.
  This also meaning that Check must always have focus object around that (and in same phase) fit objects must be.
* Searcher only must ask Check and know how from all objects fiting to Check select result object(s).

For this reason and for better compatibility removed first arg (searcher) form all Searcher classes.
Instead expected used Check::GetFocusObject() object if need ( by always need check and simolify Check classes
phase checked in Search classes). This also restore source code compatibilty in related lines with prev.client
version branches code.

* While focus object adding fixed possible wrong phase object selection at stealth detection and at corpse searches.
2010-09-22 06:25:21 +04:00
VladimirMangos
5e9b5a5297 [10512] Fixed cast item remove at trade enchanting in some cases
Also nit allow item use spels casts if item in trade.
2010-09-21 10:35:58 +04:00
VladimirMangos
14a240361d [10511] Fixed SPELL_AURA_MOD_COMBAT_RESULT_CHANCE dodge chance apply to auto-attacks result. 2010-09-20 14:20:34 +04:00
kamikazetg
1544c97525 [10510] Reimplement aura stack checking EventAI events.
* In consistent with other EVENT_T_TARGET_* apply event
  to current combat target.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-20 13:29:22 +04:00
Lynx3d
47397ff19b [10509] Fix some "foo initialized after bar" gcc warnings and remove some unused variables. 2010-09-20 10:07:25 +02:00
NoFantasy
8ccf9c7464 [10508] Arrange case SCRIPT_COMMAND_ in correct order, also in ObjectMgr
Some additional code style corrections.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-20 00:20:41 +02:00
NoFantasy
29a723e41e [10507] Extend SCRIPT_COMMAND_TALK with option to set language for text
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-19 20:50:18 +02:00
NoFantasy
a1fd19b6b3 [10506] Implement 5 new SCRIPT_COMMAND_*
All commands can only have creature as the affected by command
*_SET_ACTIVEOBJECT - switch activeObject state on/off
*_SET_FACTION - changes faction
*_MORPH_TO_ENTRY_OR_MODEL - changes model to model from creature_template entry or model id explicit
*_MOUNT_TO_ENTRY_OR_MODEL - mounts on model from creature_template entry or model id explicit
*_SET_RUN - switch walkmode on/off

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-19 19:27:33 +02:00
nos4r2zod
19d028d099 [10505] Remove unused stuff
Signed-off-by: Laise <fenrisse@gmail.com>
2010-09-19 08:57:44 +02:00
Chipleo
e766102457 [10504] Prevent damage player in sanctuary by pet or other controlled unit.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-19 02:24:04 +04:00
zergtmn
20f4a16f01 [10503] Move *_respawn tables to characters DB.
This allow have in `mangos` DB only world static state data.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-19 00:45:21 +04:00
NoFantasy
c5b0593855 [10502] Correct comment for ACTION_T_FORCE_DESPAWN, action do have param
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-18 02:20:56 +02:00
NoFantasy
4e4f74e4aa [10501] Correct wrong character in mangos.sql
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-18 02:08:34 +02:00
NoFantasy
0245efecb7 [10500] Extend SCRIPT_COMMAND_TALK to support random selected text
In addition to adding fields for text id storage (in total 4 text id's), also added a comments field for developers notes in scripts (it may help those being old of age to remember what goes on in a script).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-18 01:55:29 +02:00
mns
869acb2a24 [10499] Fixed typo at copy-paste in ArenaTeam::BroadcastEvent
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-18 02:34:27 +04:00
NoFantasy
d7216b0991 [10498] Arrange case SCRIPT_COMMAND_* so that they come in correct order.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-18 00:07:53 +02:00
NoFantasy
167b7bfeac [10497] Add a crude documentation of script command processing
It is mostly copied from source files and should be subject for further improvement.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-17 23:44:17 +02:00
NoFantasy
cb877e1281 [10496] Re-work struct ScriptInfo and use union for data fields.
Enumerate SCRIPT_COMMAND_* and move it away from world.h

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-17 23:33:22 +02:00
VladimirMangos
1753942154 [10495] Clarify not working state for target buf events in EventAI
Unclear how provide target for event...
2010-09-17 23:03:57 +04:00
VladimirMangos
241d232f3a [10494] Really allow proccesing buff events in EventAI. 2010-09-17 22:23:20 +04:00
VladimirMangos
26f8e9c35e [10493] Implement EVENT_T_TARGET_MISSING_BUFF 2010-09-17 17:58:53 +04:00
VladimirMangos
92e9670a11 [10492] Fixed crash in debug output for some data.
It well known at account data loading if character/account have
in account data string look like pritf format string (with %s for example)

Thanks for research porblem to jwo@lighthouseapp.com!
2010-09-17 00:35:04 +04:00
VladimirMangos
d83a7dbcd9 [10491] Search player in player list in update fields data prepare is bad idea. 2010-09-16 22:51:59 +04:00
nos4r2zod
6c2414b7d2 [10490] Arena ratings chnages is signed, fix debug string accordingly.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-16 20:27:24 +04:00
NoFantasy
bb7792940b [10489] Correct some typos in comments for SCRIPT_COMMAND*
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-15 21:34:27 +02:00
NoFantasy
9aa683f0e9 [10488] Fix checking text id's for creature_movement_template
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-15 11:57:18 +02:00
NoFantasy
8b10ac9474 [10487] Implement SCRIPT_COMMAND_MOVEMENT(20) to start/change movement
datalong can be 0:idle, 2:random, 3:waypoint. In case 3, creature must have a existing creature_movement_template.
Command start movement for source of script. If source is not creature but target is, it will apply to target.
Optionally creature entry can be defined (datalong2) and start movement for this if found nearby (search radius defined in datalong3).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-15 11:48:51 +02:00
Laise
abbf4f5331 [10486] Use casterGUID check for delaying holder since possible stacking same spell from different casters 2010-09-15 11:36:04 +02:00
darkstalker
63cdd66bcb [10485] Check school mask for SPELL_AURA_MOD_AOE_DAMAGE_AVOIDANCE
* Some spells expect this.
* Check SPELL_AURA_MOD_PET_AOE_DAMAGE_AVOIDANCE just for similarity,
  currently no spels with aura 310 with special school masks.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-15 03:17:38 +04:00
VladimirMangos
f0956e258c [10484] Use for auraholde/aura GetStackAmount uint32 result.
uint32 result used in most expressions for stack calculation/compare
Alos uint8implicitly casted to int by C++ in expressions that generate unexpected
signed/unsigned warnings in comparisons (uint8 +1) > uint32 and similar.
2010-09-14 21:30:42 +04:00
Lynx3d
a3e62d43b0 [10483] Finally add README to vmap_assembler 2010-09-14 16:25:23 +02:00
NoFantasy
921dda56ba [10482] Add basic function MoveWaypoint() to manually start creature waypoint path
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-14 12:43:04 +02:00
NoFantasy
3027d4ba61 [10481] Use prefix m_ for member variable in motionMaster
Some additional code style cleanup.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-14 10:52:57 +02:00
NoFantasy
d7994c1df4 [10480] Fix a bug causing creature dynamic flags to be removed at normal loot preparation.
In addition add use of UNIT_DYNFLAG_TAPPED_BY_PLAYER
Added check to see if creature is tapped for isAllowedToLoot()

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-13 10:34:53 +02:00
darkstalker
919dc87bac [10479] Implement heak absorb for periodic heal
Also fix SMSG_PERIODICAURALOG for periodic heal for 3.5.5

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-13 03:10:10 +04:00
VladimirMangos
6af66f1ae4 [10478] Implement item 49623 visual effects.
Original patch provided by Darkruler.
2010-09-13 02:12:06 +04:00
faramir118
f8c258608f [10477] Fixed heal amount for some cases heal absorb
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-12 20:35:18 +04:00
Laise
b91f914dbc [10476] Fix 31228 and ranks 2010-09-12 16:52:26 +02:00
VladimirMangos
84a915e1b1 [10475] Implement SPELL_AURA_HEAL_ABSORB (301)
Used for example in spells 66237 and 70659.

Also rename CalculateAbsorbAndResist -> CalculateDamageAbsorbAndResist
2010-09-12 02:45:26 +04:00