Commit graph

753 commits

Author SHA1 Message Date
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
Lynx3d
6fbf464786 [11073] Prevent applying SPELLMOD_DURATION for summons with unlimited duration.
Fixes summon duration of spell 70908 in combination with talent 44557 and ranks.
2011-01-26 03:00:48 +01:00
NoFantasy
47ef4eca32 [11072] Remove SetCreatorGuid for wild summoned creatures.
If any exceptions exist where this field must be set, please inform in forums :)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-25 20:59:25 +01:00
NoFantasy
c54ae28ac2 [11071] Some improvements to summon location of wild summoned
Not using a hard coded radius, instead summon at location where radius is 0 (or the actual radius).
Does only affect spells without TARGET_FLAG_DEST_LOCATION set (and the majority of those spells with implicit target 18)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-25 20:14:58 +01:00
NoFantasy
686d9b0c70 [11064] Add dummy effect of spell 9976
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-22 12:30:18 +01:00
NoFantasy
1824dd767f [11057] Add script effect of spell 48917
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-21 12:19:27 +01:00
zergtmn
2223393527 [11051] Implement spell 51662 2011-01-20 17:13:06 +05:00
zergtmn
9bc37afa28 [11044] Make EffectDistract implementation less hacky 2011-01-19 23:13:19 +05:00
PSZ
0f70e9a79c [11043] Add additional check for spell 53475, 53487 and 54015
Only reset when current rep is less than the reset value.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-19 17:10:21 +01:00
NoFantasy
6f2804d513 [11042] Add dummy effect of spell 47305 and script effect of 47311
Note: spell animation (the fun part of the spells) does not play as it should, so this implementation should be revised at some point to correct that problem.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-19 16:58:01 +01:00
VladimirMangos
bf04f46011 [11040] Fixed spell bonuses apply to healing from 58757
Thanks Lynx3d for help in patch writing.
2011-01-18 21:59:20 +03:00