VladimirMangos
4a087e6bda
[11557] Duel related fixes
...
* Implement duel allowed check base at proper area flag AREA_FLAG_DUEL (0x00000040)
This allow duels for example in capital area 4570 and allow/fogbid correctly some other zones and areas.
* Implement duel cancel at leave duel allowed area
* Fixed code for duels work in sunctuary if area allow duels.
2011-05-29 03:57:15 +04:00
Schmoozerd
3beb20b67d
[11553] Implement script effect for spell 68861.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-28 06:37:31 +04:00
Xfurry
325e610b2a
[11546] Implement script effect for spell 72034/72096
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-27 01:10:30 +04:00
Xfurry
c117acc926
[11545] Implement spell 24320
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-26 21:51:35 +04:00
VladimirMangos
78a4460501
[11535] More wide use IsFitToFamilyMask
...
Simplify check for one from cases base at recheck spell data.
2011-05-25 04:06:55 +04:00
NoFantasy
b46237b643
[11519] Fix player totem icons (those under player portrait)
...
SMSG_TOTEM_CREATED must be sent before totem added to map.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-21 10:32:07 +02:00
NoFantasy
569d7cdc42
[11518] Add script effect of spell 48810 and 48811, dummy aura of 48143
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-21 08:15:12 +02:00
VladimirMangos
6237c115a5
[11495] Implement damage taken reduce part of spell 20911, 25899.
2011-05-16 20:47:14 +04:00
VladimirMangos
575584ad9b
[11494] Implement spell 1842 and similar.
2011-05-16 17:17:14 +04:00
VladimirMangos
249fb836ca
[11490] Alow implicit cast ObjectGuid->uint64 and only explicit uint64->ObjectGuid
...
Now safe allow this casts in like way after completed convertion to ObjectGuid use.
Also simplify code in result allowed auto cast to uint64.
Please _not_ add new uint64 storages (local and in structures) for guid values.
2011-05-15 22:04:57 +04:00
stfxpi
5b128243c5
[11480] Avoid use 2 random call in dummy 14537
...
For random generators use in same calculation 2 random roll calls can
expose internal dependences in pseudo-random generation algo
and in result generated values will not so random as expected.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-13 15:08:00 +04:00
Xfurry
4bdf829064
[11471] Implement dummy effect 21147
...
Also simplify addThreatPercent but in same time avoid rounding in -100% case.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-11 23:06:04 +04:00
VladimirMangos
ef6a48fe03
[11465] non-ObjectGuid guids in random places.
...
Only ChannelMgr code wide use uint64 guids now, and Map object stores.
2011-05-10 21:27:49 +04:00
VladimirMangos
31c34a940d
[11462] Missing ObjectGuids in spell code.
2011-05-10 13:05:39 +04:00
VladimirMangos
44f2c26389
[11459] More ObjectGuid using in Aura/SpellAuraHolder code.
...
Also fix build in PetAI code. Thanks to rsa for fix code.
2011-05-09 23:17:39 +04:00
VladimirMangos
1d781cd431
[11457] Use ObjectGuid way work with PLAYER_DUEL_ARBITER.
2011-05-09 20:40:21 +04:00
stfxpi
0c33b7bedf
[11452] Implement spell 14537 effects.
...
Also re-add in correct way sql update for prev. commit.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-09 05:30:46 +04:00
NoFantasy
fac122184f
[11449] Correct script effect of spell 50218
...
Also for related copy weapon/copy offhand weapon
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-09 00:06:30 +02:00
NoFantasy
18605354f7
[11427] Add dummy effect of spell 48790
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-03 19:06:44 +02:00
NoFantasy
635d132ea8
[11426] Call JustSummoned (gameobject case) also from EffectSummonObject
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-02 23:55:55 +02:00
NoFantasy
0b2f34f93b
[11422] Fix bug in spell dummy for 46485, looking up by wrong field
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-02 19:28:13 +02:00
NoFantasy
73985bca70
[11421] Minor adjustment of spell dummy effect for 46797
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-02 18:28:06 +02:00
NoFantasy
df1376b14b
[11418] Add CreatureAI call JustSummoned version for GameObject*
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-02 10:18:11 +02:00
NoFantasy
9aaa8069e2
[11417] Add dummy effect of spell 45583
...
Another dummy that need static Gameobject spawns in database.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-02 08:39:51 +02:00
NoFantasy
ed6bc11c76
[11416] Add dummy effect of spell 46171
...
Another case of respawning GO from database, DB devs be aware.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-02 00:37:30 +02:00
NoFantasy
d8ea895a20
[11413] Extend dummy effect for spell 52369 and 52371
...
Search for gameobject near target and respawn if not already spawned.
Att. DB devs: gameobject should be added to database, with negative spawntimesecs.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-01 16:49:19 +02:00
NoFantasy
f076575a7b
[11412] Add dummy effect of spell 52369 and 52371
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-01 10:38:51 +02:00
Xfurry
4bdc02509a
[11407] Add dummy effect of spell 17950
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-30 10:55:54 +02:00
DasBlub
0f7aaa865a
[11395] minor code cleanup for spell 26275
2011-04-24 23:09:33 +02:00
DasBlub
dd0b464a87
[11394] the spell ids 26275 and 38358 were out of order in the switch(). moved them to the correct place.
...
thanks to vladimir for pointing out!
2011-04-24 23:05:49 +02:00
megamage
119d7d9f48
[11392] implement spell 38358 which casts 38353
...
Original patch created by megamage, modified by stfx and Schmoozerd. Thanks!
Signed-off-by: DasBlub <DasBlub@gmail.com>
2011-04-24 22:33:08 +02:00
TOM_RUS
730a907252
Use enum InventoryResult as return type for few functions.
2011-04-24 02:48:35 +04:00
NoFantasy
c4f2b30205
[11387] Add dummy and script effect of spell 45958 and dummy aura of spell 45963
...
Thanks dpedroia15 for parts of 45958.
Note: spell 45958 may be processed further with DB table spell_scripts.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-20 23:41:00 +02:00
SilverIce
820a3c0eff
[11380] Research dynamicobject types, added DynamicObjectType enum
2011-04-19 11:22:35 +03:00
dpedroia15
3bf9a5c35b
[11379] Add script effect of spell 24714 and improve related 24751
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-19 08:45:30 +02:00
dpedroia15
849528ebad
[11378] Add script effect of spell 26004
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-19 08:14:20 +02:00
NoFantasy
dad07abcb2
[11377] Some additional comments in relation to spell 45713
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-18 10:23:12 +02:00
VladimirMangos
79cd96af8a
[11374] Another fix for Spell::EffectPersistentAA
...
If we use affected caster for dynamic object then we must use it for spellmods apply also.
2011-04-17 05:21:36 +04:00
VladimirMangos
5fae870a1d
[11373] Clarify Spell::GetAffectiveCaster result and add comment for recent added call case.
2011-04-17 04:56:54 +04:00
Schmoozerd
dbcca634e8
[11366] Fix wrong faction-based targeting of DynamicObject's auras
2011-04-16 10:46:14 +03:00
NoFantasy
1523cf5ae3
[11358] Add script effect of spell 45713
...
DB devs should note the special design for this spell, as it will set proper model for creatures when used from *_addon tables. See code comments.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-15 12:28:21 +02:00
NoFantasy
2c09c11091
[11357] Replace some 0-values with UNIT_DYNFLAG_NONE
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-15 11:07:55 +02:00
NoFantasy
ece78f44fa
[11341] Add dummy effect of spell 32146
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-13 00:29:00 +02:00
VladimirMangos
6f74cf8994
[11340] Type in Spell::DoSummon error message
2011-04-13 01:35:15 +04:00
Ambal
c60bee7173
[11339] Set correct summon coordinates for creature pet, created in Spell::EffectSummonPet(). Should fix rare crashes in RandomMovementGenerator<Creature>::_setRandomLocation.
...
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-04-12 23:41:18 +03:00
DaC
347070c4bc
[11328] Move dummy effect code for spell 38194 to proper spell family case.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-10 21:10:11 +04:00
SeTM
eb497a636b
[11327] Restore hunter's pet call after desmiss work.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-08 23:27:49 +04:00
Lynx3d
773b98538b
[11326] Script effect of spell 47097 had reversed area condition according to latest spell_target_position data.
2011-04-08 03:23:02 +02:00
VladimirMangos
ba77d85a30
[11323] Avoid explicit use HIGHGUID_UNIT as creature high guid in guids or creature creating.
...
This helper change for allow have in future static spawned vehicles as `creature` table data.
Added CreatureInfo::GetHighGuid() high guid selector, and wrapper CreatureData::GetHighGuid()
for most real cases of usage. Also easy get expected guid form by CreatureData::GetObjectGuid(lowguid).
Also fixed some memory lost cases at creature spawn fail.
2011-04-07 21:15:27 +04:00
zergtmn
0dfcbf8051
[11322] Get rid of redundant CalculateSpellDuration calls, calculate once in Spell::prepare
...
Also fix despawn time calculation of dynamic objects.
2011-04-07 13:32:29 +06:00