Commit graph

871 commits

Author SHA1 Message Date
Triply
a50606d225 [7370] Fixed crash in CheckSkirmishForSameFaction() function, when we erased iterator which shouldn't be erased
Fixed crash in BattleGroundQueue::Update() by changing BGFreeSlotQueueType from deque to list.

Signed-off-by: Triply <triply@getmangos.com>
2009-03-02 09:50:31 +01:00
NoFantasy
94de4437f8 [7369] Remove ReqSourceRef in quest_template.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-02 03:31:18 +03:00
Lightguard
2f02dc7642 [7368] Implement unequip unexpected offhand weapons at talent reset (mostly for warror talent case).
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Implemented OffhandCheckAtTalentsReset option for unequip at zone change (default)
and at talent reset itself (can be enabled).
2009-03-02 02:46:59 +03:00
VladimirMangos
98750bd95b [7367] Restore one more time broken auctions work. Sorry :( 2009-03-01 19:02:52 +03:00
Triply
aa5f021d28 [7366] Enabled skirmish arena matches for same faction.
Patch is tested and should not add crashes.

Signed-off-by: Triply <triply@getmangos.com>
2009-03-01 12:20:11 +01:00
VladimirMangos
de51363151 [7365] Implement potion in combat delay proper work.
Original patch provided by miranda.conrado.
2009-03-01 11:33:08 +03:00
VladimirMangos
2b10d8fd71 [7364] Really implenent server-side anti-cheating cooldown check for spells with SPELL_ATTR_DISABLED_WHILE_ACTIVE.
Move apply cooldown for like spells to aura apply (GO registering for owner in GO summon spell case)
Store "infinity" cooldown for like spells, ignore it at save and reapply it at aura loading.

Note: one problem still exist for like spells: at loading/far teleport spell icon lost diabled state at client.
      Need sedn some unknown data in SendInitialPacketsBeforeAddToMap or SendInitialPacketsAfterAddToMap for restore it state.
2009-03-01 10:21:47 +03:00
VladimirMangos
ed6123c804 [7363] Propertly set cooldown at server side for category spells at cooldown event send to client.
Also support item dependent cooldown set propetly at cooldown event send to client.
Last will used in follow potion cooldown delay in combat patch.
2009-03-01 10:14:45 +03:00
VladimirMangos
2b9eeb782e [7362] Use IN_MILISECONDS where appropriate, other cleanups. 2009-03-01 05:22:56 +03:00
VladimirMangos
cea44af521 [7361] 2 lost cases from prev. commit. 2009-03-01 01:16:36 +03:00
VladimirMangos
b9326100ea [7360] Use defines instead harcoded item prototype array sizes. 2009-03-01 00:32:37 +03:00
Triply
4994611582 [7359] Fixed crash when removing battleground from BGFreeSlotQueue.
Fixed player will now drop a flag before he logs out, if he is in BG.

Signed-off-by: Triply <triply@getmangos.com>
2009-02-28 09:55:17 +01:00
VladimirMangos
2791d5a6d3 [7358] Fixed spell_area autocast field loading. 2009-02-28 03:24:36 +03:00
balrok
91ad4c21de [7357] Fixed double applied playerlink in .levelup command.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-28 01:58:35 +03:00
freghar
74b9874fd8 [7356] Use tabs for indent in Makefiles
Signed-off-by: freghar <compmancz@gmail.com>
2009-02-27 21:23:19 +01:00
Triply
bb1d8d7bc7 Fixed crashes when inviting same faction arena groups.
Fixed crash in BGEndedRemoveInvites (by setting queue type from deque to list).

Signed-off-by: Triply <triply@getmangos.com>
2009-02-27 21:00:48 +01:00
Triply
f49ee9e157 Finally fixed problem with joining rated arena matches.
Thx to balrok for help and testing.

Signed-off-by: Triply <triply@getmangos.com>
2009-02-27 16:21:28 +01:00
Triply
a81d174288 [7353] Fixed problem with joining rated arena matches. Thanks to balrok for help.
Signed-off-by: Triply <triply@getmangos.com>
2009-02-27 14:20:31 +01:00
Triply
0be003ac90 [7352] Fixed conditions in FillPlayersToBG to correctly kick group only when other team's selection pool is empty. Problem reported by balrok. Thx
Signed-off-by: Triply <triply@getmangos.com>
2009-02-27 11:56:38 +01:00
Triply
3560d9de54 [7351] Fixed removing normal horde groups from queue.
Fixed Reflective shield - patch provided by Rastik. Thx

Signed-off-by: Triply <triply@getmangos.com>
2009-02-27 11:08:57 +01:00
zhenya
95439564aa [7350] Use more compact and fast way for check class/race achievement.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-27 12:54:33 +03:00
VladimirMangos
1fca6de6f3 [7349] Implement spell cast depenences from area/quest.aura state store in new table spell_area.
* It allow store requirenments: area, active or rewarded quest (until possible another quest not rewarded),
  aura present at character, character race/gender.
* Listed spell can marked as auto-casted when fit requirents. In this case spell requirements checked at
  zone/subzone update (and then resurraction also), quest start/reward, dummy aura apply.
* Old hardcoded lines for similar check removed from sources and required DB support for work now.
2009-02-27 11:15:36 +03:00
VladimirMangos
9e7e374077 [7348] Remove hack code from IsDeathPersistentSpell.
Re-apply zone dependent auras at resurrection by triggering zone update for player.
2009-02-27 08:04:21 +03:00
VladimirMangos
19c513fc61 [7347] Prevent sql errors at GM-mode corpse save. Apply same chnages and for other pahsemask save part for consistense and safe. 2009-02-27 06:49:16 +03:00
VladimirMangos
01d7801ca0 [7346] Revert [7342] and really restore work CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION setting. 2009-02-27 06:46:08 +03:00
VladimirMangos
64158d61b3 [7345] Use in most cases dynamic quest level as expected (player level for quests witl level 0)
Original patch provided by NoFantasy.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-27 01:25:20 +03:00
Velorien
aba675c4ca [7344] Ignore drop rate multipliers in loot groups.
For grouped loot use rates create problems with impossibility loot some items including quest items.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-26 09:21:09 +03:00
VladimirMangos
3dd6b69adb [7343] Fixed uninitilized lock fields for grid info.
This must fix problem with unexpected lock grids data in memory
with enabled grid unloading config setting.
2009-02-26 08:53:54 +03:00
False.Genesis
4a46cb843d [7342] Use neutral auctionhouse id in case CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION as more expected.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-26 05:15:18 +03:00
NoFantasy
dbe15f5e59 [7341] Report about wrongly use CREATURE_FLAG_EXTRA_INSTANCE_BIND for creatures spawned at not dungeon maps.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-26 05:06:18 +03:00
aerione_alt
ae1a404a04 [7340] Prevent standup at save in result unexpected packet send to client.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-26 04:44:13 +03:00
VladimirMangos
b4dbeb3bc8 [7339] Attempt lock spawn grid only for active non-pet creatures. 2009-02-26 02:45:22 +03:00
ApoC
f35ffca03e [7338] Little cleanup in battleground queues code.
* Moved counts and maxs out of enums.
* Added some linebreaks to better code reading.
* Little bit tuned up BattleGroundQueue::RemovePlayer.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-25 23:34:49 +01:00
ApoC
1fcaf35e29 [7337] Make some methods const.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-25 22:33:59 +01:00
Triply
8f995ce904 [7336] Implemented new BattleGroundQueue invitation system. Now it supports premade group versus premade group matches.
Added 2 new config options - InvitationType and PremadeGroupWaitForMatch - you can find more info in default config file.
This patch can cause crashes.

Signed-off-by: Triply <triply@getmangos.com>
2009-02-25 19:21:31 +01:00
VladimirMangos
872d791ca6 [7335] Implement active objects support.
Active objects triggrering grid loading and updating around self like players.
It can be used for event long run movements or escoring quest travels.
Also can be used for proper implementation far vision spells.
Currently only creatures can be activated by function call (from script) cr->SetActiveObjectState(true);
Please avoid lot amount active objects in same time use. Existance active objects support isn't meaning
that each rabbit must be active creature.

Also added independent grid unloading locks for explicit unloading lock,
lock for used by instance copied grids, lock counter for actiove object spawn grids locks.
Last case required for prevent double spawn active creature walk far away from spawn point.
2009-02-25 13:44:49 +03:00
VladimirMangos
dd06340d6c [7334] Restore movement generators work after recent commits. 2009-02-25 13:24:23 +03:00
VladimirMangos
1349d36270 [7333] Refactoring DestinationHolder/Traveler/Unit::SendMonsterMoveWithSpeed code.
* Move common code in appropriate functions.
* Correct select speed and 2D/3D distance for creature/player walk/fly
2009-02-25 07:03:45 +03:00
VladimirMangos
fa26c1f8d7 [7332] Allow provided target for .distance command using player name or shift-link with guid. 2009-02-25 06:43:09 +03:00
FrenchW
654fa0bb1d [7331] Normalization and corrections in mangos_commands.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-24 03:05:23 +03:00
VladimirMangos
9b3daf3933 [7330] Code warnings and style cleanups. Some bugs fixes.
1) comparison singed and unsigned values
2) redundent includes
3) wrong constructor :-part field initilization
4) unused not-/*name*/-guarded args in template/virtual functions that not required like args.
5) explicitly list not implemented achievement types.

Also bugs fixed:
1) Drop wrong phase mask 0 check in WorldObject::InSamePhase.
2) ArenaTeamMember::ModifyPersonalRating incorrect work with move points in negative with infinity values in result.
3) ArenaTeam::SaveToDB code send uint64 value to string with arg format %u.
2009-02-24 01:54:53 +03:00
wilibald09
373af9905d [7329] Fixed CastBarCaption localization data loading from DB.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-23 07:40:38 +03:00
VladimirMangos
3441c28998 [7328] Implement new way of work for warlock player summoning spell 698. Required correct DB data. 2009-02-23 01:27:52 +03:00
charlie2025
1185188a7e [7327] Restore work of meeting stones, and make it work in more correct way. Required correct DB data.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-23 01:22:30 +03:00
balrok
8c701f6287 [7326] Not allow have ammo_pouch and a quiver equipped in same time.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-22 06:35:35 +03:00
VladimirMangos
218571a817 [7325] Always have flag UNIT_FLAG2_REGENERATE_POWER set for loaded character.
Original patch provided by nos4r2zod.
2009-02-22 06:19:37 +03:00
Sephiroth1983
2046aee715 [7324] Spells deleted from characters in 3.0.2+
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-22 05:48:55 +03:00
aerione_alt
a3bb9cdb48 [7323] Character Customize should not force rename.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-22 05:39:51 +03:00
GriffonHeart
e133c9f0d7 [7322] Allow stacking for spell 52950 and 52707
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-22 04:44:04 +03:00
VladimirMangos
ab7b358d44 [7321] Remove frozen aura state at aura remove only if not other frozen auras. 2009-02-22 00:00:25 +03:00