Commit graph

699 commits

Author SHA1 Message Date
Schmoozerd
705f716cb1 [12146] Implement spell 30769 2020-02-16 20:41:24 +00:00
Shyax
61c7249770 [12132] Remove useless casting and use SIZEFMTD instead in strings. Close #6 2020-02-16 20:41:10 +00:00
Shyax
6e76dbae3f [12128] Fix more warnings - close #4
* Remove warning: enumeration value '<value>' not handled in switch
* Remove warning: enumeral and non-enumeral type in conditional expression
* Remove warning: too many arguments for format

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2020-02-16 20:41:05 +00:00
Schmoozerd
1707edbcfd [12127] Add wrapper to access spell locations
* Add SpellCastTargets::getSource to get the source position (for TARGET_FLAG_SOURCE_LOCATION)
* Add SpellCastTargets::getDestination to get the destination position (for TARGET_FLAG_DEST_LOCATION)
2020-02-16 20:41:04 +00:00
rsa
de95d1d480 [12123] Move BattleGround code to separate BattleGround directory. Also some corrects to unload BG's 2020-02-16 20:40:57 +00:00
Salja
e27d8ce9ae [0185] Fix Typo/Crash Thanks Sar777 for fixing.
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:36:59 +00:00
Reamer
f7545c531b Update src/game/Spell.cpp
add Target Limitation for 53457

Thx to Xfurry for research
2020-02-16 20:32:05 +00:00
Reamer
aae22adb43 [0163] Update src/game/Spell.cpp
add Target Limitation for 53457

Thx to Xfurry for research
2020-02-16 20:31:25 +00:00
Reamer
801fd40aba Update src/game/Spell.cpp
add Target Limitation for 53457

Thx to Xfurry for research
2020-02-16 20:18:47 +00:00
Yaki Khadafi
3153bd2129 [0146] Cleanup deprecated item mods and combat ratings
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
2020-02-16 19:51:43 +00:00
Yaki Khadafi
9a00d62017 [142] Implement worgen transformations
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
2020-02-16 19:38:50 +00:00
Yaki Khadafi
455f9d0aac [0125] Fix SpellShapeshiftEntry
Remove unexistant moveflags2
Fix spell 68992

Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
2020-02-16 18:53:29 +00:00
Salja
73ec9c2ce4 [0114] Updated "item_template" Thanks Fabi Fix some DBC problems, some clean.
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 16:19:43 +00:00
Yaki Khadafi
e0a8e30cc3 [0093] Enabled and updated lots of opcodes, mostly spell-related. All structures checked .
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
2020-02-16 15:32:25 +00:00
Yaki Khadafi
19d898c836 [0091] Define SPELL_ATTR_EX8_IGNORE_TARGET_FOR_COMBO_POINTS
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
2020-02-16 15:31:09 +00:00
Yaki Khadafi
0328054d17 [0087] Use missile elevation and speed in delay calculations. Author: @rsa
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
2020-02-16 14:31:49 +00:00
Yaki Khadafi
6407b24a03 [0086] Updated CMSG_SPELL_CAST, CMSG_USE_ITEM, CMSG_PET_SPELL_CAST, SMSG_SPELL_START, SMSG_SPELL_GO and some other spell opcodes 2020-02-16 14:31:14 +00:00
Xfurry
5aef24e6f5 [12090] Implement some spells for AQ40
Dark Glare beam spells: 26137, 26009, 26136 and 26029
Server side spell: 26133
2020-02-16 10:16:18 +00:00
Yaki Khadafi
e7d0275ae2 [0067] Set- canfly/forcemoveroot/waterwalk packets, SMSG_PLAY_SPELL_VISUAL
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
2020-02-16 08:29:40 +00:00
Yaki Khadafi
39dda4bc4c Fix compile
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 02:53:43 +00:00
Yaki Khadafi
e9bee9b0b0 Update UpdateFields.h. Drop redundant powers and happiness.
thx Strawberry

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 02:25:30 +00:00
Salja
5424aed420 Added Support for DB2 Reader. Thanks to all Authors
NOTE: extractor need fix/update.
      support for VC80/VC90
      cmake need update

Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 02:25:24 +00:00
Salja
22bfaa12b0 Mage 400 INTO master/434
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 01:59:51 +00:00
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