Commit graph

763 commits

Author SHA1 Message Date
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
michalpolko
56eb87f1f8 [11033] Implement glyph 45793.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-18 14:06:09 +03:00
NoFantasy
3bb16cacdb [11031] Add dummy effect of spell 54577 and script effect of 54581
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-18 10:57:44 +01:00
michalpolko
7d61f8470e [11024] Fixed work spell 50720
* Threat redirection correctly applied
* Implemented cooldown reset part.

Note: Damage redunction still not fixed.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-17 15:21:03 +03:00
x3n
d35be7f4c1 [11023] Implement support for threat multiplier and AP based threat bonus for spells.
* Higher ranks are now automatically filled when not listed in spell_threat
* Added some loading checks to detect inconsistent data

Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2011-01-17 12:55:24 +01:00
breakwater
d072a42807 [11020] Proper percent damage for effect 3 of spell 50341.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-17 11:08:19 +03:00
VladimirMangos
1e8ca772b3 [11012] Remove battlemaster mails support as unused now. 2011-01-15 19:18:44 +03:00
Daggy
e9fc7d05b2 [10999] Add teleport destination for TARGET_EFFECT_SELECT cases
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-11 09:29:04 +01:00
VladimirMangos
15943c95d8 [10996] Move set max original aura stack cases to aura holder creating
This will avoid show unexpected "gain Name Name(2) Name(N)" spam in log.

Maybe exist more nice way seelct like spells instead raw listing but i not see currently it.
2011-01-10 15:34:31 +03:00
NoFantasy
7ab08fd6a4 [10992] Add CastSpell part of dummy effect for spell 23138
Also limit max targets.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-09 19:41:29 +01:00
NoFantasy
f8680c119d [10991] Add dummy effect of spell 19411 and 20474
Hack alert! Create GO manually instead of using spell. See code comments for details.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-09 18:47:59 +01:00
Lynx3d
f11ec97957 [10990] Fix wrong threat assignment in Spell::EffectHealPct when m_caster and m_originalCaster differ. 2011-01-09 15:43:50 +01:00
Daggy
9f8cfb77d4 [10967] Add dummy effect of spell 38194 and limit it's maxTargets
Correct order of spellfamily case.
Note: triggered spell 38203 needs target map fill

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-05 10:24:23 +01:00
VladimirMangos
a0e298179c [10952] Don't use singleton to access static functions. 2011-01-03 14:55:55 +03:00
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00
VladimirMangos
afdfdf6559 [10939] Check non-unit target case for avoid crash in EffectQuestComplete. 2010-12-30 03:20:39 +03:00
zergtmn
ec6089bbd8 [10935] Move script calls to ScriptMgr
- Script library presence is now optional.
- Some script hooks have new names. Scripting libraries need to be adjusted accordingly.

Signed-off-by: zergtmn <zerg@myisp.com>
2010-12-29 21:48:06 +05:00
VladimirMangos
918e646ca2 [10934] Implement dummy effect of spell 7671.
Thanks to X-Savior for reserch.
2010-12-29 05:05:59 +03:00
zergtmn
0d6f990e4e [10912] Move scripting related functions from ObjectMgr to ScriptMgr 2010-12-24 00:23:37 +05:00
KiriX
b6c50838a3 [10910] Use provided target instead of caster for SPELL_EFFECT_QUEST_COMPLETE
Signed-off-by: zergtmn <zerg@myisp.com>
2010-12-23 21:03:14 +05:00
VladimirMangos
a84d67a389 [10908] Imporve detection need use reagents by triggered spell.
Now regagent used if main spell (if infor about provided to triggered cast)
not have regent data.

This fix reagetn use for spell 43723. But maybe need another fixes for proper animation.
2010-12-23 00:58:21 +03:00
zergtmn
2f4e7a9377 [10901] Allow vehicles to have gossip menu
In addition rename IsGameobject -> IsGameObject.
2010-12-21 15:14:52 +05:00
VladimirMangos
f228a1c08d [10866] Unsummon guardians at re-cast only for non-triggered case. 2010-12-13 08:05:46 +03:00
NoFantasy
0c20c0f9f7 [10858] Add triggered spell part for dummy effect of spell 43572
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-11 12:37:10 +01:00
Feanordev
c5a96cde5f [10852] Fixed typo in [10847]
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-11 02:57:51 +03:00
VladimirMangos
4e72ead2fb [10847] Unsummon guardians at second item use for items without cooldown. 2010-12-09 14:39:25 +03:00
NoFantasy
e1b243f375 [10846] Add dummy aura of spell 43874 (indirectly related to spell/effect 50133)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-09 11:39:52 +01:00
NoFantasy
4aa0ab7c40 [10845] Add dummy effect of spell 49634 and dummy aura of spell 56511
note* spell will need data in spell_script_target to work properly.
note* the effect of 56511 does not work, see comment in code for details (code added in any case, to not forget the problem)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-09 10:58:54 +01:00
Schmoozerd
8d5fdb300e [10837] Implement script effect of spell 26218.
Also do small spells ordering around.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-08 06:03:03 +03:00
VladimirMangos
4c02094737 [10834] Cleanup shapeshift form code. 2010-12-07 14:41:59 +03:00
VladimirMangos
b6ea36192e [10829] Update SpellFamily check functions.
* Move SPELLFAMILY_* to DBCEnums.h and name it as SpellFamily
* Use enum in Unit::GetAura, move family mask code to new SpellEntry helper function.
* Avoid all auras scan in search of triggred spell for 20243.
2010-12-06 08:40:39 +03:00
VladimirMangos
b967848e42 [10823] Clear way access/set UNIT_FIELD_BYTES_*/PLAYER_BYTES* byte fields.
Fix some bugs when all uint32 field modified instead byte parts.
In some cases added byte way set/get but code line itself need additinal reserch/fix
for use correctness in line pos.
2010-12-04 11:15:19 +03:00
NoFantasy
49881d4215 [10818] Add dummy effect of spell 47170
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-02 15:26:39 +01:00
VladimirMangos
a8a7f3c796 [10815] Use in social lists API ObjectGuid form.
0 GUID_LOPART uses in code. :)
2010-12-02 08:32:46 +03:00
VladimirMangos
3c0b80dada [10814] Convert to ObjectGuid aura cast item guid access function. 2010-12-02 08:12:15 +03:00
VladimirMangos
2277b24207 [10807] Typo fix and memory layout optimization. 2010-12-02 01:31:11 +03:00
VladimirMangos
3de8212e03 [10801] More ObjectGuid uses in battleground code. 2010-12-01 13:29:30 +03:00
VladimirMangos
cc0655a402 [10782] Use Team enum types in all appropriate cases and catches bug in result fix.
* Fixed wrong arenaid use at leave arena queue.
* Fixed memory lost and etc at not virtual EndBattleground call
* Fixed crash at arena join with fake data from client.
* Code cleanups.
2010-11-25 01:11:17 +03:00
VladimirMangos
b20b3e5ade [10757] Implement zone limited pets unsummon at leave allowed zones.
* Also remove redundant zone/area args for zone/area update function like UpdateZoneDependentAuras.
* Merge Player::*AllControlledUnits functions to Unit version with replace option args by mask arg.
* Unit::*AllControlledUnits guardian iteration make working with internal unsummon call suport for guardians case.
2010-11-20 08:10:32 +03:00
rsa
92ed528eb9 [10754] Use UNIT_FIELD_CRITTER for store minipet guid.
Also move related code to Unit and allow summon minipets by creatures.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix creature's totems unsummon at owner remove from world.
2010-11-20 04:37:14 +03:00
VladimirMangos
2601022b9f [10751] Use objectguids in item code.
Also
* Fixed unexpected container updated state after inventory load
* Make .debug getitemstate command more friendly by args.
2010-11-20 01:59:48 +03:00