Commit graph

791 commits

Author SHA1 Message Date
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
NoFantasy
c81eafd1c1 [11308] Add dummy effect of spell 43209
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-03 15:14:07 +02:00
zergtmn
4d262b593d [11301] Implement SPELL_EFFECT_CANCEL_AURA 2011-03-31 13:24:27 +06:00
zergtmn
4687fa8cb4 [11299] Handle aura durations in SpellAuraHolder
- Unit::CalculateSpellDuration split into two functions
    - CalculateSpellDuration taking into account combo points and caster-side spell mods
    - Unit::CalculateAuraDuration taking into account target-side spell mods
- Diminishing is now applied before duration reduction mods
- Implement saving per-effect periodic timers to DB (required for auras affected by haste)
2011-03-30 23:29:01 +06:00
zergtmn
ee5b59b7e0 [11293] Cleanups in spell target lists 2011-03-28 01:14:36 +06:00
NoFantasy
23af82081b [11290] Add dummy aura effect of spell 62109
Also add a smaller hack to have access to m_caster later (see code comments)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-26 10:53:40 +01:00
NoFantasy
40d87bfabf [11289] Partially revert [11287] and try to do it properly this time.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-26 08:05:07 +01:00
NoFantasy
dae28ae93a [11287] Add dummy effect of spell 62105 and dummy aura effect of 62248
Note: spell 62105 are still considered to be negative, despite explicit exception added in IsPositiveEffect and will unexpectedly put caster in combat.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-26 00:16:09 +01:00
zergtmn
0bc4bc1d75 [11282] Use uint32 datatype for aura charges and stacks
* Some spells have StackAmount > 255, for example 22735, 54314
* In SMSG_AURA_UPDATE maximum stack amount is limited by 255
* Move duplicate code into SpellAuraHolder::BuildUpdatePacket function
* Cleanup some weird type casts in _LoadAuras
2011-03-25 14:40:09 +05:00
NoFantasy
96183f8e3f [11277] Add dummy effect of spell 48046
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-22 12:32:15 +01:00
Schmoozerd
cb1bb261ea [11275] Add missing script call JustSummoned for guardian and critter pet
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-21 23:57:08 +01:00
NoFantasy
5b9c2bf336 [11268] Add dummy effect of spell 43014
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-20 18:41:47 +01:00
NoFantasy
0432802379 [11265] Properly take reagents for triggered spell of 44364 (ref previous commit)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-19 11:43:51 +01:00
NoFantasy
f1fb9afa43 [11264] Add script effect of spell 44364
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-19 11:16:03 +01:00
VladimirMangos
b588ea9db3 [11260] Add wrapper for creature vistual item set. 2011-03-16 20:21:45 +03:00
VladimirMangos
789f513ede [11249] Lost summon point set for critter 2011-03-15 04:18:10 +03:00
VladimirMangos
2b65cdb3bb [11244] Collect in CreatureCreatePos data for delayed pos setup into Creature::Create.
* CreatureCreatePos work in 3 modes:
    - exactly provided coordinates/orientation/map/phasemask
    - exactly object + orientation as coordinates/map/phasemask
    - delayed position calculation near provided object at specific dist/angle.
* Use in similar way and for Pet/Vehicle Create functions.
  For Totem created new Totem::Create function with some moved in to it totem specific code.
* This let resolve recent problems with creature spawn and preserve fix for cases when
  Creature::Create addon/script code expected known correct possition for creature.
2011-03-14 06:18:34 +03:00
NoFantasy
99b8c8b34f [11239] Comment out crap added in [11237] and bonk the author for creating it.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-10 20:06:51 +01:00
NoFantasy
fcb4eca715 [11237] Implement conditional check in EffectQuestComplete
A few spells has basepoint value, conditional for successful effect.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-10 17:13:55 +01:00