Commit graph

6207 commits

Author SHA1 Message Date
VladimirMangos
cda3a95fc2 [11705] Allow have auction bid generated by server
Some code cleanups also.

Fir generation bids can be used auction->UpdateBid(price) call without player pointer.
2011-07-02 06:26:49 +04:00
VladimirMangos
0f0fa22607 [11704] Resolve possible crash in auction code for paiment pending state.
Source of crash in sharing item object for sent mail to new owner
and in same time use it in still existed auction for show pending paiment.
Crash possible if new onwer get mail in less hour delay and will drop item
at receive.

Solution: Added fields in memory auction object and table `auction` for
store item stack size and random property id. This let not use auction item
except points where item send to owner at expire and new owner at
buyout/timeout auction with bid.
2011-07-02 04:23:24 +04:00
VladimirMangos
0daf12a348 [11703] Proper way create items in Item::CreateItem/CloneItem for items not for inventory
Old code way work not allow create item without providing targeting player.
In result creating item that will not placed to inventory required additional hacks
for undo redundent links to player structures.
2011-07-02 01:08:01 +04:00
VladimirMangos
cc11366d6b [11702] Alsways attempt generate randomProperty for item in at create if value not pre-selected.
This resolve all existed cases when we miss assign random property id.

Also move random property/suffix check from item creating to server load time.
2011-06-30 19:19:02 +04:00
VladimirMangos
67f9c26d51 [11701] Command .auction item and support auction without owner.
* New command allow place auction from chat/console and create auction without owner.
* Same code can be used in other place when server code want create generated auction
  without need have associated player. Auction code update for support this case.
* MailDraft::SendMailTo now allow "send" mails to non-players. It correcly drop items in like case.
2011-06-29 23:29:32 +04:00
VladimirMangos
78991c1131 [11700] Implement SPELL_AURA_DETECT_AMORE (170)
For example used by item 35125.
2011-06-29 17:52:01 +04:00
Amaru
8f0c5d88b1 [11699] fix reflect damage if caster can reflect too
Signed-off-by: Laise <fenrisse@gmail.com>
2011-06-28 19:17:52 +03:00
VladimirMangos
75cfbb41c8 [11698] Fixed spells 50756 and 50758 stack check
Original patch provided by Xfurry.
2011-06-28 20:15:18 +04:00
Laise
178654bbba [11697] fix damage and duration of reflected spells 2011-06-28 18:57:27 +03:00
Xfurry
b3b1257625 [11696] Implement spell 51336
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-28 19:56:10 +04:00
Schmoozerd
d679c83884 [11695] Implement spell 24780 (switching target every 10s)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-28 17:24:53 +04:00
Schmoozerd
26ccba0a8a [11694] Implement spell 28560
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-28 16:24:02 +04:00
virusav
7e625de523 [11693] Send main spell info in EffectForceCast
This help in proper reagents use in related triggered spell.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-28 15:54:46 +04:00
VladimirMangos
387a15f1a1 [11692] Fixed damage/heal amount from some triggered HoTs/DoTs. 2011-06-28 15:22:13 +04:00
PSZ
bb9157c6fc [11691] Typo in select proper spell difficulty function 2011-06-28 12:25:25 +04:00
Den
6a142fcd55 [11690] Shaman T10 Restoration bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-28 01:00:48 +04:00
Den
c5a52705f0 [11689] Priest T8 Healer 4P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-28 00:52:34 +04:00
Den
7e0f74f286 [11688] Priest T8 Shadow 4P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-28 00:44:18 +04:00
Den
4127224fe7 [11687] Mage T8 2P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-27 16:46:47 +04:00
VladimirMangos
c11d3eb132 [11686] Fixed startup error for 31785 in spell_proc_event 2011-06-27 16:39:13 +04:00
Den
ea130fb41a [11685] Death Knight T9 Melee 2P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-27 16:33:12 +04:00
Den
9c186a25be [11684] Hunter T7 4P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-27 16:28:09 +04:00
VladimirMangos
52b3f66b38 [11683] More consitence use m_target for DestroyItemWithOnStoreSpell call in aura.
This don't must be cases when caster != m_target but anyway not reason have
not nice look code.
2011-06-27 01:58:03 +04:00
Den
6b4f6cee31 [11682] Priest T10 Healer 2P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-27 01:50:46 +04:00
Den
1492ca1e41 [11681] Rogue T9 2P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-27 01:20:52 +04:00
Den
fb035db1bf [11680] Druid T8 Balance 4P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-26 20:25:47 +04:00
Laise
4ec9af2220 [11679] allow 31785 and ranks proc from periodic heals 2011-06-26 14:56:58 +03:00
Den
4607ef7584 [11678] Paladin T8 Holy 2P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-26 03:15:52 +04:00
Den
8b4a85ac19 [11677] Paladin T10 Holy 2P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-26 03:02:59 +04:00
Den
80b0c4c148 [11676] Implement glyph 42746
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-26 02:17:37 +04:00
VladimirMangos
a7afa91fcd [11675] Skip some unexpected results in ObjectPosSelector::AddUsedArea 2011-06-25 21:09:45 +04:00
VladimirMangos
d8a3f4b925 [11674] Fixed names of pets summoned by npc.
* Add check to make sure that creature controlled pet use default name from template.
* Add localization support to pet name query for above pets type.
2011-06-25 20:45:48 +04:00
Den
adcae44c9a [11673] Fixed spellfamily mask for glyph 45735 triggering.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-25 06:31:51 +04:00
Den
7dfeddbdef [11672] Implement glyph 42414.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-25 06:22:34 +04:00
Den
d395df0d06 [11671] Druid t8 Restoration 4p bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-25 05:35:12 +04:00
VladimirMangos
04a469f393 [11670] Implement in proper way ITEM_SPELLTRIGGER_ON_STORE (5)
Item spells with this trigger mode expected casted at item add
to inventory/equip slots (exclude bank), and spell auras (if any)
applied while item in like slots. Item expected destroyed at aura
remove by some reason.

Implementation note: because 2 step way item moves from slot to slot
related auras not removed at internal RemoveItem call and removed only
at directly item destroy/remove from player function calles, or at StoreItem
(if item added to not appropriate slot). So need in future careful with new
RemoveItem call cases.
2011-06-24 22:55:58 +04:00
VladimirMangos
3f840222ee [11669] Remove script use with EventAI check.
It's not problem if script not have own AI part.
2011-06-24 17:07:53 +04:00
NeatElves
362f7fb820 [11668] drop redundand line from prev. commit
Signed-off-by: SilverIce <slifeleaf@gmail.com>
2011-06-24 15:36:52 +03:00
SilverIce
f99fcb1b92 [11667] Implement transport path rotation
Transport rotation transforms transport path - this makes possible to have few transports with same entry but with modified paths.
This also solvers problems with some transports (like deeprun tram).
TODO: some transports has non standart rotations, that must be stored in db

Signed-off-by: SilverIce <slifeleaf@gmail.com>
2011-06-24 14:28:08 +03:00
Warlord123
85a13fcc33 [11666] Warrior T10 Protection 4P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-24 05:53:52 +04:00
Amaru
405eb1f02a [11665] Mage T10 2P Bonus trigger only at proc charges aura remove.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-24 05:13:06 +04:00
KiriX
f42b8c388a [11664] Spell 12298 and ranks must triggering also at parry/dodge.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-24 05:00:08 +04:00
VladimirMangos
9620e01157 [11663] Check at EventAI scripts load diff reqs for event ai real call
* Script existence <-> `creature_template`.`AIName`="EventAI"
* In strict DB check mode: script existence conflict with setting `creature_template`.`ScriptName`
2011-06-24 03:31:30 +04:00
VladimirMangos
0413ff9c34 [11662] Spell 37433 targeting only non-swiming players.
Original patch provided by anti-freak.
2011-06-22 18:23:28 +04:00
Azelen
245f79dc6b [11661] Set cooldowns and spell school masks for some trinket spell procs.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-22 00:59:30 +04:00
VladimirMangos
5cf1a1a6b5 [11660] Fixed glyph 43427 apply.
Now must affect targets amount only for ability main spell.
2011-06-21 23:47:34 +04:00
VladimirMangos
15bb164d72 [11659] Rewrite object pos selector.
* Instead coordinates use angle projections to expected pos distance circle.
  This let do mostly only angle comparison and then speedup checks.
* Fixed some long existed bugs in algo and simplify code. Possible more work need.
2011-06-21 22:33:33 +04:00
VladimirMangos
e776dbbfc8 [11658] Revert "[11298] NearUsedPosDo searcher should add only units with correct coordinates. Possibly can help with freezes when 'DetectPosCollision = 1'."
This reverts commit a79ca96e4ae7b6ab1b70319e8b3011253068c841.

This restore work object pos selector for units.
Reverted commit make fully disabled it work for multiply attackers case.
2011-06-20 22:51:41 +04:00
VladimirMangos
3bea0ec357 [11657] Daily/weekly quests must still reward expirience/max level money at repeating. 2011-06-19 22:11:45 +04:00
mumion
328a62f18f [11656] For not first repeating quest avoid reward money as xp replacement.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-19 21:51:32 +04:00