Commit graph

455 commits

Author SHA1 Message Date
VladimirMangos
6b78ed534d [9020] Re-implement 1680 (and triggred spell for 46924) in less hack way. 2009-12-18 06:20:35 +03:00
VladimirMangos
71f8f1b5a1 [9015] Fixed spell 34914 ranks dispel damage and spell 29722 and ranks bonus damage.
In both cases not expected additional spell damage bonus apply.
2009-12-17 22:11:42 +03:00
VladimirMangos
562ad128d3 [8999] Make creature wild summoned by item 49040
This make it usable by other players, not only owner.
Also sort summon types by value in switch.
2009-12-16 13:59:06 +03:00
VladimirMangos
e17d3043ea [8997] Implement SUMMON_PROP_TYPE_REPAIR_BOT(12) support
Used only for item 49040 summon. Need DB support for proper work summoned creature.
2009-12-16 01:28:21 +03:00
VladimirMangos
1d608c482f [8978] Fix wrongly apply weapon damage mods to broken weapon. 2009-12-12 21:12:43 +03:00
VladimirMangos
ed7d561597 [8963] Make bindpoint field private and add required functions for use. 2009-12-10 12:22:17 +03:00
Quriq14
8d519d7219 [8953] Apply spell mutiplier to final damage for health calculation in Spell::EffectHealthLeech.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-09 00:29:55 +03:00
qsa
ffca4301d0 [8944] Use DBC data for summon effect functionality.
Also some more local fixes:
* Alow multiply same type guardians req. for some spells.
* Apply spell duration mods to summons

Many summon spells must start work.

Great work qsa! :)

Thanks The_Game_Master for updaing patch to recent sources.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-07 23:40:10 +03:00
Nick Nitro
65f1d6ba14 [8941] Limit used energe as expected for spell 22568 and ranks.
Thanks also to Sarjuuk for code simplification.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-07 18:08:02 +03:00
VladimirMangos
4ee8cb3504 [8937] Small lost change, just more correct code by form. 2009-12-07 14:47:24 +03:00
VladimirMangos
b0a6993031 [8936] Implement spell 48743 2009-12-07 14:12:47 +03:00
QAston
8b0ce112ba [8922] Implement telant 46859 and ranks additional debuff apply.
Thanks to xXxRRLxXx and KAPATEJIb for patch prepering.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-06 02:52:44 +03:00
nos4r2zod
bfaeddbc4b [8921] Implemement talent 53583 and ranks refresh part for spell 54428
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-06 01:14:32 +03:00
VladimirMangos
f8d0496407 [8915] Fixed rage calculation for spell 5308 and ranks. 2009-12-04 04:53:29 +03:00
VladimirMangos
76ad6efef0 [8913] Fixed typo in recent Spell::EffectDispel code changes.
Also some code cleanup.
2009-12-03 13:46:44 +03:00
VladimirMangos
94147f2b5a [8910] Implement spell 62124 damage part. 2009-12-03 02:03:49 +03:00
VladimirMangos
03e16dd08b [8905] Dispel work with aura stacks fixes.
* Implement set of remove aura functions for remove single aura from stack.
  Also some order function declarations for more clear show different aura remove functions.
* Change Spell::EffectDispel to dispel single aura instead all similar auras from caster.
2009-12-02 22:07:50 +03:00
VladimirMangos
68581bd918 [8901] Implement rage save part of talent 29723 buff and ranks.
Original patch provided by Wojta with improvments from darkstalker.

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

Also add `spell_check` data for code changes.
2009-12-01 16:39:27 +03:00
LordJZ
47cda41d93 [8879] Re-implement buff selection for item 47499.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-27 14:42:10 +03:00
VladimirMangos
ce92d2e1d2 [8877] Revert "[8876] Fixed spell 724 and ranks."
This reverts commit 5b96e3a2250755dec615e683c54a2ed056739370.

Spells expected summon creatures. This proved by related data.
2009-11-26 11:58:45 +03:00
pasdVn
949dae6d1c [8876] Fixed spell 724 and ranks.
Required Db support (gameobject templates)

(backported from commit 6a4fd16)
2009-11-26 02:44:52 +03:00
Splinter
e636d63fdb [8869] Implement talent 15273 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also add data for SpellEffect.cpp last weeks changes to `spell_check` table.
2009-11-24 12:34:48 +03:00
Splinter
487a8de692 [8843] Drop support removed in 3.2.x spells 31892, 53720.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-20 13:19:41 +03:00
Splinter
55e715dddd [8824] Implement 3.2.x changes for spell 5308 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-17 08:39:37 +03:00
balrok
6199396b69 [8821] removed some redundant player->SaveToDB calls
SaveToDB will already be called at "SpawnCorpseBones"
so no need to do this twice
2009-11-15 20:08:57 +01:00
Splinter
22fb22ee5e [8800] Implement item 47499 work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-10 21:24:49 +03:00
XTZGZoReX
0734adb746 [8789] Rename several singleton macros to use more consistent names.
* objmgr -> sObjectMgr
 * spellmgr -> sSpellMgr
 * WaypointMgr -> sWaypointMgr
 * poolhandler -> sPoolMgr
 * objaccessor -> sObjectAccessor
 * mapmgr -> sMapMgr
 * sInstanceSaveManager -> sInstanceSaveMgr
 * ticketmgr -> sTicketMgr
 * CreatureEAI_Mgr -> sEventAIMgr
 * auctionmgr -> sAuctionMgr
 * achievementmgr -> sAchievementMgr
2009-11-08 12:11:34 +01:00
XTZGZoReX
1f23884757 Don't use singleton to access static functions.
* This affects especially ObjectMgr functions:
   - GetCreatureInfo
   - GetGameObjectInfo
   - GetInstanceTemplate
   These are in fact static functions.
2009-11-08 03:54:27 +01:00
VladimirMangos
1b6176396e [8747] Implement player's pet resilience, also fix DoT case. 2009-10-29 04:34:57 +03:00
VladimirMangos
9e4b833054 [8734] Re-implement talent 31789
* Allow apply to enemies of attacked party member
* Correctly apply effect to 3 attackers
2009-10-25 10:18:48 +03:00
ApoC
00c2035cc7 [8730] Fixed spell 51770 after my recent changes in auras trigger system.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-25 03:33:09 +01:00
VladimirMangos
d7ae5e3af0 [8718] Remove most GetObjectInWorld functions and move some map local to Map
Also mape pet guid counter per-map (in different expecte to be global pet number)
2009-10-24 01:16:40 +04:00
ApoC
40b0a2cd92 [8717] Fixed SPELL_EFFECT_TAMECREATURE broken after [8686]
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-23 22:31:16 +02:00
AlexDereka
f286a2e64e [8715] Fixed possible crashes and some typos 2009-10-23 17:09:51 +04:00
VladimirMangos
d482193cea [8705] Move DynamicObject guid counting from global levle to map.
This is first step in guid counting for map local object types at map level.
Map local countin let
1) have more wide guid space and then more seldom have problems with guid counter overflow
2) possible implement (later) restart map at guid overflow without server shutdown.
3) let use static guids (not for DynamicOPbject that not stored in DB anyway) in instances instead dynamic allocated.
2009-10-22 06:49:35 +04:00
m4cm4n
aa87b7007c [8675] Implemented dummy effects for spells 49357, 52845.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-18 21:02:31 +02:00
XTZGZoReX
0e1854a936 [8671] Correctly send SMSG_PET_TAME_FAILED with appropriate value when taming fail instead of spell fail.
I also removed conditions from Spell::EffectTameCreature which are checked in Spell::CheckCast.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-18 19:16:48 +02:00
balrok
81e79ce199 [8668] change log: outError to outDebug typo in AddHonor 2009-10-18 14:18:13 +02:00
ApoC
df3cc2ce00 [8666] Sorted switch for dummy effect spell generic part by spell id.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-18 12:10:32 +02:00
VladimirMangos
b258a17ba4 [8658] Threat calculation fixes and improvements.
* Add single arg version Unit::AddThreat for just adding to threat list.
* Req. provide schollmask and crit flag for any real threat value for proper threats mod apply.
* Send crit flag in DealDamage as MELEE_HIT_CRIT for spell damage for later send to threat call.
* For not affected by modifiers threat values use SPELL_SCHOOL_MASK_NONE.
* Implement aura SPELL_AURA_MOD_CRITICAL_THREAT (used only in itemset 529 effect).
2009-10-17 11:02:30 +04:00
VladimirMangos
a4d61a6988 [8649] Implement SPELL_AURA_MECHANIC_IMMUNITY_MASK (147) and related cleanups.
* Always use machanic masks in form (1 << (mech-1)), fix all cases.
* Imppement SPELL_AURA_MECHANIC_IMMUNITY_MASK (mostly boss/elite spells).

Note: db stored mechannic masks already stored in proper format so not affected.
2009-10-15 20:53:01 +04:00
NoFantasy
65965bc5fa [8642] Replace the Spanish word 'hostil' with the English one.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-14 12:46:10 +02:00
pasdVn
c47cf7bd61 [8635] Rewrote bonus damage claculation
* calculation depends on the damageClass now
  ->SPELL_DAMAGE_CLASS_RANGED & SPELL_DAMAGE_CLASS_MELEE use MeleeDamageBonus()
  ->SPELL_DAMAGE_CLASS_MAGIC & SPELL_DAMAGE_CLASS_RANGED use SpellDamageBonus()
* changes/improvements in MeleeDamageBonus:
  -> improved criterions to apply bonuses
  -> implemented scaling of FLAT damage Bonus for non weapon damage based spells
  -> support of DOT's
  -> added pet's bonus damage for non weapon based spells
* general cleanup in CalculateSpellDamage() and MeleeDamageBonus()
* implemented global helper functions GetWeaponAttackType() and GetAuraTicks() in SpellMgr

Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-14 00:33:24 +02:00
zhenya
4cc389ff71 [8621] Missing break.
Not affect anything but code style problem anyway.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-11 00:11:33 +04:00
balrok
45f6a474bf [8608] implement BattleGround Alterac Valley
sql won't be included - please look at your database
providers forum

also note, that creature_loot_template id 0
is used for the loot of dead players in this bg
(after a player died and you remove insignia from him..
he not only drops money - he drops some random items too)

further work must be done in better code for adjusting right
levels to creatures - maybe using something similar like it's
done in heroic instances

also quests and creatures needs some scripts in future

thanks to:
netsky - initial start of this patch
bogie - 2nd person writing on this patch
triply, kapatejib, vladimir - code review and suggestions
arrai - for his great tool and help
and all testers / code contributers - I won't write
down a list, else I would forget most probably one ^^
2009-10-09 18:18:22 +02:00
VladimirMangos
ef19575a59 Update spell code base at mangos_spell_check.sql errors:
* Drop code for spell 781. Not need now for work.
* Move code for 8017 and ranks to expected effect for 3.2.x.
* Drop code for spell 26635. Not need for new way work.
2009-10-03 06:47:34 +04:00
tomrus88
546f7a7fe5 Merge commit 'origin/master' into 320
Conflicts:
	src/game/BattleGround.cpp
2009-09-28 19:52:54 +04:00
balrok
1f9b4ca4c3 [8553] removed spiritguide from code
they basicaly should
*autocast 22011
*give player after gossiphello buff 2584
*port players away to another spiritguides, when they die

so this can be done by a script
and maybe eventai
2009-09-28 16:45:06 +02:00
balrok
2da82a8c68 [8552] implemented spells which can be casted while dead
i added a function IsDeathOnlySpell() which returns true
if this spell can ONLY be casted while dead, so i haven't
implemented all spells which could be cast while dead..
2009-09-28 16:44:49 +02:00
hunuza
6c12b38711 Implement DK spell 50842.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-09-27 17:32:28 +02:00