Commit graph

1648 commits

Author SHA1 Message Date
VladimirMangos
9983286280 [7372] Cleanup BattleGround::GetClosestGraveYard related code. 2009-03-02 15:56:37 +03:00
Triply
f454ddf6d0 [7371] Correctly select closest graveyard in Player::RepoopAtGraveyard(). Patch provided by balrok Thx.
Signed-off-by: Triply <triply@getmangos.com>
2009-03-02 10:38:08 +01:00
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
tomrus88
9e1e845e54 Fixed talents display and inspect 2009-03-01 18:20:22 +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
8c489f80dc Merge commit 'origin/master' into 310 (at [7361], for resolve expected conflicts)
Conflicts:
	src/game/Spell.cpp
2009-03-01 01:24:29 +03:00
VladimirMangos
ce8bd43bef Merge commit 'origin/master' into 310 (at [7360]) 2009-03-01 01:18:20 +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
tomrus88
aedf3dd722 Updated spell auras/effects enum 2009-02-28 19:11:04 +03:00
tomrus88
4155a63696 Fixed quest details packet 2009-02-28 17:27:22 +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
VladimirMangos
07bce28d5c Call proper function for .reload spell_area 2009-02-28 01:56:47 +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
tomrus88
f65a29d1bf Added lost SQL update 2009-02-27 21:16:33 +03:00
tomrus88
ffca6c8c57 Fixed some opcodes 2009-02-27 19:25:11 +03: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
tomrus88
42a8ae3752 More work on update packets 2009-02-26 19:55:45 +03:00
tomrus88
a8f7f57065 New client build, SMSG_MONSTER_MOVE partly fixed 2009-02-26 11:39:00 +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
tomrus88
d3872fa572 In world with 3.1 2009-02-25 20:52:47 +03: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