Commit graph

763 commits

Author SHA1 Message Date
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
virusav
97e6439a0f [11179] Add dummy effect of spell 50918 and script effect of 50894
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-17 12:38:53 +01:00
NoFantasy
2ba3fe7114 [11170] Add dummy effect of spell 66390
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-15 13:26:52 +01:00
NeatElves
ec432ea452 [11148] Add dummy effect for spell [74904]
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 17:07:16 +02:00
Toinan67
ec123b59a6 [11146] Proper damage for spells [68793] and [69050]
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 16:28:57 +02:00
dpedroia15
4483cbc06d [11142] Implement dummy effect for spell [3360]
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 15:22:55 +02:00
VladimirMangos
cf685da47a [11139] Use for Creature/GameObject local per-map guids
* Creature/GameObject guid generators moved to Map
* For avoid wrong not converted cases generic function in ObjectMgr has been replaced by
  specilized guid generation function like sObjectMgr.GeneratePlayerLowGuid().
  This let catch all cases that need update in custom code or scripts.
* Drop many ObjectAcessor.h now dead code. This is also make mangos more thread safe.
* Restore one more time unix build broken in prev. commits.

Note: many cases when something not wotk in instance but work in continents
possible magicly start work after this commit. For example, some gm commands.
From large systems that need more chnages for start work in full power in instances
can be referecned pool/gamevent system. Last need just small hacks drop changes but
in will addded in independent commit.
2011-02-12 09:52:16 +03:00
NoFantasy
0d16b0bdc7 [11125] Add dummy effect of spell 39189
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-10 00:58:54 +01:00
VladimirMangos
f09a4e2a1a [11103] Fixed item 40775 mount work
* Move code to dummy aura (main spell mount aura not applied yet in time scripting effect processing)
* Use special mount spell selection helper instead raw code.
2011-02-02 20:28:11 +03:00
NoFantasy
6f74fa1be8 [11099] Add script effect of spell 24720
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-02 12:32:50 +01:00
NoFantasy
abb7c64fb1 [11098] Add script effect of spell 24717 and 24737
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-02 11:53:14 +01:00
NoFantasy
a23f1a2e08 [11097] Add script effect of spell 24718
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-02 11:40:24 +01:00
Morphau
65ad0231e7 [11096] Add script effect of spell 24719
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-02 11:31:02 +01:00
virusav
beeec1c0cd [11092] Add script effect of spell 24194 and 24195
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-01 14:07:26 +01:00