Commit graph

703 commits

Author SHA1 Message Date
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
VladimirMangos
6154cb3b43 [10749] Convert Gameobject owner to objectguid use. 2010-11-19 20:55:19 +03:00
VladimirMangos
12b80fec68 [10747] Some other aura caster object guid use cases. 2010-11-19 18:36:43 +03:00
insider42
355f172fc6 [10743] Add AP/RAP bonus data to spell_bonus_data.
Also remove related hardcoded cases.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 06:03:19 +03:00
virusav
82505a8633 [10740] Cleanups in spell effects names.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 02:49:16 +03:00
VladimirMangos
f9bcfa3a89 [10739] Cleanup pet remove code and some fixes.
* Merge Player::RemovePet and Pet::Remove function code to Pet::Unsummon
  This let be sure that in all cases all required steps doen. For example this fix
  creature's guardians propertly remove from guardians list.
* Add new pet save mode PET_SAVE_REAGENTS as replacement PET_SAVE_NOT_IN_SLOT+true-arg stable pair in old function args
  This will avoid use reagent save arg with wrong different save modes.
* Fixed recently added code with absent check for re-summon protector pet call.
2010-11-19 02:17:55 +03:00
TOM_RUS
de66f32882 [10738] In fact set pet name to empety state redundent.
Client work propertly also if used default name from creature template (set in create code).

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-18 23:23:22 +03:00
VladimirMangos
1fe4b1f4bb [10737] Use empty name for non-unique named pets.
This let to client select appropriate name by self base at UNIT_CREATED_BY_SPELL data.
2010-11-18 22:58:49 +03:00
VladimirMangos
876458c6e4 [10735] Fixed spell 51420 work by use recently added protector pets as expected.
Thanks to NoFantasy for problem research (and prev. new pet type adding case research aslo) ;)
2010-11-18 22:21:31 +03:00
VladimirMangos
98d19f4d07 [10734] Rename and clarify SummonPropertiesEntry.Type->Title field meaning.
This also show why we have some problems with sorting sumons by types base at this field.

Thanks to TOM_RUS for research.
2010-11-18 22:07:33 +03:00
VladimirMangos
9c0076181b [10733] Implement defencive guardians pet type for creatures like 28120 2010-11-18 21:23:22 +03:00