Commit graph

826 commits

Author SHA1 Message Date
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
NoFantasy
792b5ba343 [11236] Add dummy effect of spell 49859
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-10 11:04:18 +01:00
NoFantasy
2469bf946a [11232] Proper check for loot recipient.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-08 12:57:11 +01:00
crackm
c3f2a6be77 [11230] Add dummy effect of spell 42793
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-08 10:24:09 +01:00
virusav
a3f9d3a4dc [11225] Add comments about spells related to spell 47110
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-06 12:40:48 +01:00
NoFantasy
710dce3f97 [11224] Add script effect of spell 24751
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-06 11:45:23 +01:00
VladimirMangos
51b4556c4b [11222] Move possition setup for Creature and subclases before Create call.
Some called from Create code can req. proper pos setup for creature.
Bad side: But in way how currently code orginized impossible setup excetly position for most
Creature sublasses. So in this part need more work.
2011-03-06 12:47:37 +03:00
DasBlub
c132e54f73 [11221] Fixed typo after recent code move to Spell::EffectTameCreature
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-03-06 09:20:10 +03:00
VladimirMangos
06fe777f82 [11215] Replace direct code use in .npc tame by spell cast.
Only work different from old way: target creature despawned.
So if this not expected use .respawn to it in gm mode or area respawn.

Code simplification suggested originally by rsa.
2011-03-03 21:33:47 +03:00
NoFantasy
a5d83cea08 [11212] Add dummy effect of spell 47110
Dummy/script effects of related "sub" spells also.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-01 08:42:23 +01:00
NoFantasy
56205543bf [11211] Remove obsolete comment
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-28 02:30:29 +01:00
Lynx3d
44fd108745 [11203] Implement creating scrolls when enchanting vellum.
Thanks to Lightguard and timmons for original contribution.
2011-02-24 01:23:59 +01:00
Lynx3d
3f86c5a865 [11200] Move hard-coded AP coefficients for spells 1776, 8680, 13218 and ranks to spell_bonus_data table. 2011-02-23 13:06:29 +01:00
dpedroia15
0c45eee083 [11182] Add dummy effect of spell 64981
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-17 15:24:17 +01:00
zergtmn
57ebd5371d [11181] Small optimization for [11179] 2011-02-17 19:13:46 +05:00
virusav
06d36feed2 [11180] Add dummy effect of spell 69922
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-17 14:11:07 +01:00