Commit graph

676 commits

Author SHA1 Message Date
Schmoozerd
835d1c7479 [12069] Cleanup comment style 2012-07-22 14:39:31 +02:00
Schmoozerd
e32b9953a1 Cleanup Operator padding 2012-07-20 17:38:23 +02:00
Schmoozerd
08fd085549 Various Cleanups (game S) 2012-07-19 21:52:06 +02:00
Xfurry
c9d98e8c96 [12053] Add target limitation for 65872 2012-07-16 22:16:14 +02:00
Schmoozerd
f946197259 [12049] Let PossessedSummons despawn on Channeled-Aura interrupt
Maybe this mechanic should also be used for normal possessed mobs, but then their special handling must be removed
Also not entirely sure if this a great place for this code to be - but I didn't catch a better suiting one
2012-07-16 22:10:47 +02:00
Xfurry
0cce85e46e [12034] Implement a bunch of spells
* Target Limitations for: 70450 70837 71445 71471 71837 71861
* DummyEffects for: 71445 71471, 71718, 72040, 71837, 71861, 72261
* ScriptEffect for: 71806
2012-07-13 00:43:42 +02:00
Reamer
c46fade9f0 [12033] Implement spell radius for 56438, target limitation for 56140 2012-07-12 22:30:11 +02:00
Schmoozerd
84527cfcc3 [12032] Fix a bug to not display usability for weapons correctly 2012-07-12 22:06:37 +02:00
Schmoozerd
208e9acbff [12031] Change way location targeting is handled 2012-07-12 21:57:45 +02:00
Schmoozerd
00f4b2e6f2 [12024] Fix Targetpair (87, 8) to use TARGET_FLAG_DEST_LOCATION
Note: It seems that atm a bunch of spells are broken, that had seem to work before.
There will follow up a few more changes to spell targeting, so please report issues you find.
2012-06-29 13:24:23 +02:00
Reamer
e533ff54d5 [12020] Implement targeting for spell 30843
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-25 15:03:59 +02:00
Xfurry
77c5ae1684 [12001] Implement target limiting for spell 47669
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-12 23:54:20 +02:00
Schmoozerd
ef079ac0be [11996] Fix targeting for spells like 53022
Thanks to Inquisitor for pointing

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-09 14:49:47 +02:00
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