Commit graph

663 commits

Author SHA1 Message Date
Schmoozerd
74e3e55668 [11993] Fix some spell targeting
* Implement Target Type 51 as TARGET_AREAEFFECT_GO_AROUND_SOURCE
* Support spells that fill AoE targets based on source location
Thanks to Reamer for discussing these changes

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-10 19:18:37 +02:00
Xfurry
5dbef19097 [11992] Implement spells 69140, 69147 and 72705
Original author Michalpolko and others

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-09 23:50:47 +02:00
Schmoozerd
3c3db7311c [11991] Use unMaxTargets for GO-target fills
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-09 23:09:13 +02:00
Schmoozerd
83d7d86255 [11989] Add support to call spell_scripts in more cases
* Support to script Dummy spells with spell_scripts
* Support to script TriggerSpell spells which have no existing triggered spell
Note that the order which spell-effect actually triggers the DB script is well-defined (SCRIPT_EFFECT before DUMMY before other)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-08 17:31:09 +02:00
Schmoozerd
744995d27c [11986] Improve targeting for spells with TARGET_TOTEM_* targets 2012-05-05 01:36:20 +02:00
Den
67fe27774c [11981] Fix targeting of most pet spells. They expect to target alive pets
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-26 18:08:55 +02:00
Schmoozerd
8433b67599 [11976] Fix some spell visuals (for spells like 39179) 2012-04-23 12:49:48 +02:00
Schmoozerd
1f24d991e3 [11975] Use a few more enums instead of magic numbers 2012-04-22 23:45:06 +02:00
Reamer
5d445d5da9 [11974] Fix spell targeting for some spells like 20243
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-22 22:08:17 +02:00
stfx
f3f3349661 [11973] Various Cleanups
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-22 19:48:05 +02:00
Schmoozerd
7fd1f64319 [11971] Add wrapper HasAttribute to check if a spell has an attribute
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-21 02:02:34 +02:00
Schmoozerd
254a35d6a1 [11961] Fix logic bug in 11954. Should fix most spells of issue #44 2012-04-14 11:56:38 +02:00
PSZ
ff6bec96ae [11960] Implement custom overwrite for range of some spell effects
Original idea and improved design for this by PSZ, who also implemented spells 66881 (with diffmodes)
Original patch for spells 28241, 54363 by Azerus
Also fix spell 24811

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-14 00:50:21 +02:00
Reamer
b6f6c670ac [11954] Do not calculate targets for different effects with same targeting multiple times
Some effects or target-combinations might need exception from the generic rule that calculated targets from one effect are used by other effects with same targets.
This will fix bugs that different random targets for different effects are selected, even when they should be the same.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-12 22:54:53 +02:00
Schmoozerd
a42a55da84 [11942] Add option to NearestCreatureEntryWithLiveState.. GridSearcher to be able to also search for both alive and corpse creatures 2012-04-07 00:00:21 +02:00
Schmoozerd
feb139de71 [11937] Add a bunch of unMaxTargets spell target limits from R2-fork.
Authors for these fixes: mns, michalpolko, PSZ, fallenangelX, rsa, mosst, przemratajczak, reamer
And hopefully no forgotten!

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-02 14:30:47 +02:00
Den
212cbe5177 [11931] Remove some obsolete defines
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-03-29 20:50:04 +02:00
zergtmn
c6a751134c [11928] Some warning fixes 2012-02-16 20:32:17 +06:00
pasdVn
0fe4f21b6a [11889] Improve handling of target mode TARGET_RANDOM_NEARBY_DEST
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-26 00:57:36 +01:00
rsa
df9e0ebf6a [11887] Fix spell targeting for pet spells with target-type (0,0)
Also some style improvements

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-25 22:57:37 +01:00
faramir118
eca3586d74 Fix some combat behaviour of NPC-Pets
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-20 00:42:59 +01:00
Schmoozerd
177bc78108 [11879] Inform AI function of original caster in some cases
Inform the AI of an original caster for JustSummoned and SpellHitTarget.
This should make scripting some hard cases easier.
Remark that _both_ caster and original caster will be informed (if they are different).

Check your scripts that they still behave as expected!
2012-01-19 00:05:38 +01:00
Schmoozerd
8068dcf6dd [11875] Update Copyright notice to year 2012
Start timemachine and a Happy new year to all!
2012-01-16 17:43:59 +01:00
Reamer
396ce3b71d [11862] Do not overwrite channel spells with other channel spells. Close pull request #28
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-12-12 21:20:00 +01:00
Xfurry
83e85416f4 [11851] Implement spell effects for Kalecgos
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-29 21:36:22 +01:00
TOM_RUS
c814e10481 Updated SMSG_CAST_FAILED with some new information. 2011-11-17 05:23:28 +04:00
Schmoozerd
a427718cab [11847] Fix teleport spells with TargetType (TARGET_TABLE_X_Y_Z_COORDINATES, NO_TARGET)
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-15 19:55:55 +01:00
Xfurry
d034710e38 [11844] Implement spells 45976, 46177, 45989 for M'uru encounter
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-09 16:58:41 +01:00
Schmoozerd
35d2d4a316 [11841] Use difficulty selection also for player cast spells, example 65686
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-11-07 21:48:12 +01:00
stfx
09e331767d [11833] remove trailing whitespaces
Signed-off-by: SilverIce <slifeleaf@gmail.com>
2011-10-18 15:17:54 +03:00
Schmoozerd
0eff04c161 [11793] Add more features to SelectAttackingTarget
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-09-16 20:35:26 +02:00
Schmoozerd
6baf677a63 [11792] Implement spells 68912, 68871, 68875 and 68876
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-09-11 12:52:20 +02:00
Schmoozerd
0bb3a4c84d [11791] Implement spells 69048, 69051 and 69023
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2011-09-11 12:33:32 +02:00
Shauren
8e4c46ff2a [11785] Implement dungeon encounters (DBC part), thanks to rsa for porting it to mangos
Signed-off-by: Laise <fenrisse@gmail.com>
2011-09-04 13:15:22 +03:00
VladimirMangos
50e7fbbf5e [11779] Fixed resurrection for released ghost case. 2011-08-12 18:55:49 +04:00
Laise
c60425c6bd [11766] fix spell redirection and totem destruction on hit by redirected spell 2011-08-04 19:34:51 +03:00
Laise
98bd7918f4 [11760] change proc related part of [11748] note: PROC_EX_CAST_END shouldn't be used with any on-hit proc exs to avoid double proc 2011-07-29 09:38:21 +03:00
Laise
2fab507ed6 [11758] better check for totem immunity for channeled spells 2011-07-28 11:50:18 +03:00
Laise
4f397bf7aa [11757] change target of end cast procs to always be the caster, also not allow skill update when proc is called from cast end part 2011-07-27 08:49:44 +03:00
Laise
e178c79d51 [11748] Replace SpellModifier struct by direct aura access (this should fix charge drops of 36032) also revert [11740] 2011-07-20 15:41:39 +03:00
rowman
222612fa51 [11740] Restore spellmod charges used by fail spell cast
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also

 * Prevent more one charge use for same spell cast
 * Cleanup enum SpellState from unused cases
 * Propertly remove spellmod charges at spell finish in case pet/totem caster
2011-07-16 10:14:03 +04:00
zergtmn
f4802ab4c4 [11735] Spells 64844 and 64904 can target caster 2011-07-13 03:58:55 +06:00
Laise
6a597ae755 [11708] add negative auras, channeled and regeneration spells immunity for totems 2011-07-03 12:26:53 +03:00
Amaru
8f0c5d88b1 [11699] fix reflect damage if caster can reflect too
Signed-off-by: Laise <fenrisse@gmail.com>
2011-06-28 19:17:52 +03:00
Laise
178654bbba [11697] fix damage and duration of reflected spells 2011-06-28 18:57:27 +03:00
Schmoozerd
26ccba0a8a [11694] Implement spell 28560
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-28 16:24:02 +04:00
Den
8b4a85ac19 [11677] Paladin T10 Holy 2P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-26 03:02:59 +04:00
Den
80b0c4c148 [11676] Implement glyph 42746
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-26 02:17:37 +04:00
Warlord123
85a13fcc33 [11666] Warrior T10 Protection 4P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-24 05:53:52 +04:00
VladimirMangos
0413ff9c34 [11662] Spell 37433 targeting only non-swiming players.
Original patch provided by anti-freak.
2011-06-22 18:23:28 +04:00