Commit Graph

1939 Commits

Author SHA1 Message Date
Subv
9bc339cd89 Core/Movement: MSG_MOVE_TELEPORT is not supposed to be sent to the player being teleported.
Thanks @vlad852
Closes #8798
Closes #8774
2012-12-29 15:25:48 -05:00
Subv
3d3a8107e0 Core/Entities: Account for creatures that are spawned below ground level when adding flying flags. (Triggers, mostly) 2012-12-29 14:23:23 -05:00
therzok
5c8c458d60 *Fixing a typo. 2012-12-29 21:14:12 +02:00
Subv
3ad9dafdb6 Core/Entities: Update movement flags for flying/swimming creatures on Creature::Update 2012-12-29 04:01:55 +01:00
Subv
8f589dcdd0 Core/Entities: Add a delta to the ground level difference for removing the flying movementflags when landing. 2012-12-28 13:53:44 -05:00
Subv
873aa5f2a7 Core/Movement: Do not set movement flags for creatures based only on their InhabitType, check if they are actually on air/water. newline. Should allow us to fix some problems on ICC and the mmaps branch. 2012-12-27 19:31:34 +01:00
Vincent_Michael
e48bbac93f Core: Fix warning in 7b9b67a3b3 2012-12-27 01:42:25 +01:00
Trista
452e585f7b Core/Vehicles: Fixed seat id for auras with SPELL_AURA_CONTROL_VEHICLE. Also always allow npc passengers to cast spells and remove TRIGGERED_IGNORE_CASTER_MOUNTED_OR_ON_VEHICLE hacks.
* Author: Horn. Please give feedback, I tested a lot stuff, but it will be appreciated.
* One of the fixes allow all creatures to cast when being passangers, researched, this doesn't involve players.
* This basically rewrittes vehicle seat formula calculated, so it fix quite stuff that will not be visible and some eye candies: #3831 and #1984 Heart part ;) (which magically fix a lot more of it and some quests), also Yog-Sarron mechanics
2012-12-27 01:35:38 +02:00
Vincent_Michael
7b9b67a3b3 Core/Quest: Drop table quest_end_scripts 2012-12-26 23:20:05 +01:00
MidnaAT
30936fd1c4 Core/Totem: Have Lightwell use Totem logic
ref www.trinitycore.org/f/topic/7599-propper-lightwell-handling/
2012-12-26 04:34:40 +01:00
kaelima
a8cd34c4a4 Core/Battleground: Rename and correct usage of opcode 1223 and increase the timer before arena/bg invitation window is removed to its proper value. Closes #6725 2012-12-26 04:02:42 +01:00
Vincent_Michael
6e921feebd Core: Fix some codestyle 2012-12-25 02:56:19 +01:00
Trista
6189eeb8e6 Core/Movement: Fix codestyle -7092e9350bbb8123de688be0bf5dd87d8196d34f 2012-12-24 23:59:25 +02:00
Shauren
75e7cf7eb5 Core/Quests: Added support for 10/25 man only raid quests 2012-12-24 19:53:28 +01:00
Trista
7092e9350b Core/Movement: Final fix for MSG_MOVE_TELEPORT
* Creator Subv, (thx to Shauren also who stated that this packed should be used when researchs were started)
- You all should'be thankful, that bug was a real bitch
* Fix creatures using NearTeleportTo (example Urom in Oculus, Skeram/Viscidus in AQ and Heigan in Naxxramas)
2012-12-24 18:04:58 +02:00
stfx
51fadb57e0 Allow setting afk/dnd message in afk/dnd state
Also use the same variable to store the message for AFK and DND

Signed-off-by: Nay <dnpd.dd@gmail.com>
2012-12-23 17:49:47 +00:00
stfx
01ef119703 Fix receiving whispers while being dnd
Signed-off-by: Nay <dnpd.dd@gmail.com>
2012-12-23 17:49:46 +00:00
Subv
a0ad8f7a46 Core/Entities: Also send MSG_MOVE_TELEPORT to the player 2012-12-23 12:39:51 -05:00
Subv
24466d721c Core/Entities: Missing change from previous commit
Calling UpdateObjectVisibility() will make sure that the semi-far teleports (those where the destination position is not in direct sight) will work correctly.
2012-12-23 09:33:29 -05:00
Subv
143340b38c Core/Movement: Fixed near teleports, big thanks to @Trista who basically figured this out on his own. 2012-12-23 08:09:56 -05:00
Subv
3f4c6a9d45 Merge pull request #8739 from MrSmite/PetAI_CanAttack_bugfix
Fix a minor PetAI behavioral issue
2012-12-22 09:23:55 -08:00
MrSmite
09204f1534 Update src/server/game/Entities/Unit/Unit.h 2012-12-22 12:04:10 -05:00
Gacko
2302b04a06 Core/Spell: Last work on Shadows Fate
- Shadows Fate can now be applied by more than just one player at the same
   time. So on everyone who hits the unit the credit spell with the visual
   will be casted on death.
- The AOE credit spells for the three infusion quests will be casted by
  the boss once. If this would be done on proc, these AOE spells could be
  casted up to 25 times.
  -> 25 AOE credit spells plus 25 Soul Feast credit spells equals Sh**
2012-12-22 17:49:51 +01:00
Gacko
8cbb3763dd Core/Spell: Shadows Fate crash fix 2012-12-22 16:42:46 +01:00
MrSmite
4c9451d54c Fix pet stopping approach when attacked by another creature
Fix pet placed on stay after "attack" not attacking new attackers

Closes #8735
2012-12-21 20:57:22 -05:00
Vincent_Michael
a3b34e2894 Core: Fix more some codestyle 2012-12-22 01:13:56 +01:00
Vincent_Michael
63ea4b1056 Core: Fix some codestyle in 957571e18c 2012-12-21 22:22:36 +01:00
Gacko
a8b145348a Core/Spell: Add missing break. 2012-12-21 14:14:58 +01:00
Gacko
410586cf43 Core/Spell: Shadow's Fate conditions
Some of the quests only can be done in 25man mode
2012-12-20 23:56:09 +01:00
Subv
957571e18c Merge pull request #8662 from MrSmite/ItemContainer_1.1
Item Loot Saving
2012-12-20 07:00:29 -08:00
Gacko
04a3939a23 Core/Spell: Reimplement Shadow's Fate check 2012-12-20 14:44:26 +01:00
Gacko
699354d8ef Core/Spell: Shadow's Fate should hit every unit
See #8723 for further information
2012-12-20 10:01:07 +01:00
Kaelima
05c38b20ea Merge pull request #8668 from joschiwald/random_changes
Core/Misc:
2012-12-19 23:48:00 -08:00
Gacko
4f956d7782 Core/Spell: Improve/correct last commit 2012-12-19 22:40:14 +01:00
Gacko
86230e2756 Core/Spell: Fix Shadow's Fate aura
The aura proccs on unit's death. The unit should cast the credit spells
to
all players of the raid. I'll finish my work later.
2012-12-19 22:38:07 +01:00
joschiwald
f4e7cde1b5 Core/Misc:
- some simplifications in reputation calculation
- removed aura in SPELL_AURA_LINKED should depends on SpellDifficulty
- remove some unneeded variable declarations when it's already declared
- remove some hacks
- fix some warnings in Lfg stuff
- some codestyle changes
2012-12-19 12:55:51 +01:00
click
aa3980c744 Core: Remove tabs, fix whitespace and fix nonPCH properly (5am, too late for this stuff...) 2012-12-17 05:39:04 +01:00
Nay
1bd820e50f Core/Player: Fix build 2012-12-17 01:28:38 +00:00
Carlos Vargas
6c6586fa43 Core/Scripts: Adding script hooks to allow for third party scripts to modify damage dealt.
Originally from the VAS Autobalance script, slightly modified.

Only addresses Spells, Dots, and Melee Damage. I'll have look at the current modules on ways of doing this but, Environmental Damage(fire/lava/drowning), Fall Damage, and Potentially AoE aren't covered by these.

Closes #7867

Signed-off-by: Nay <dnpd.dd@gmail.com>
2012-12-17 01:26:56 +00:00
Trista
47617bb740 Merge pull request #8565 from Trista/master
Core/Creature: Update template - reinitialize spell bar for vehicles
2012-12-16 17:01:26 -08:00
thesensei
ed4bf13c44 Core/Creature: Update template - reinitialize spell bar for vehicles
* update template didn't change spell bar for players if on vehicle that updates it's template, initialize spells was needed
	* combined with faction changing, since when update is called player faction is ignored and it should be changed to his (based on sniffs)
	* the idea of this automated check inside fix SAI problems mainly, because there you have nothing to use to reinitialize the bar - closes #5254
2012-12-17 02:54:59 +02:00
Roc13x
9776bdfdfa Core/Items: DestroyItemCount also searches bank
Closes #8240

Signed-off-by: Nay <dnpd.dd@gmail.com>
2012-12-17 00:54:47 +00:00
MrSmite
04f08d26a7 Implements saving of loot (items / money) contained inside lootable inventory items.
* Unlooted items / money persist across player sessions
* Loot inside items is tied to the item rather than the player so if trading
  partially looted items becomes possible, this implementation will still work

* New tables added:

    characters_database.sql (first time users)
    characters_create_item_loot.sql (existing users)

Implementation Can be tested with:

 Watertight Trunk [21113]
 Bulging Sack of Gems [25422]
 Fat Sack of Coins [11937]

Closes #2048
2012-12-15 00:06:32 -05:00
CeIa
b87cc31106 Scripts/Events/Achievement: fix 'Out With It'
Credits to @darkman1983

Closes #8211
Closes #8126

Signed-off-by: Nay <dnpd.dd@gmail.com>
2012-12-14 01:23:53 +00:00
Vincent_Michael
36c3395bea Core/Quest: Fix reputation calculation for SPELL_AURA_MOD_REPUTATION_GAIN 2012-12-12 20:32:05 +01:00
Subv
01f118bf77 Merge pull request #8416 from MrSmite/PetAI_2.0
Core/PetAI: Several changes.
Closes #7455
Closes #8398
2012-12-09 07:50:33 -08:00
joschiwald
5c33c54054 Core/Player: correct SetHomebind and cleanup Spell::EffectBind 2012-12-08 23:46:16 +01:00
MrSmite
777b287dff PetAI - Overhaul / bug fix
* Aggressive pets now use aggro radius check based on level diff of target
  * Aggro radius limited to max 45 yards (per wowwiki)
  * Pets no longer "dance" when fighting a creature
  * Pets returning will defend themselves (if not passive) if owner didn't click "follow"
  * Pets at stay will properly pick up their owner's attackers that pass within range
  * Fix "no empty line at end of file" warning in PetAI
  * Fix typo in GetAggroRange()
  * Fix spell "Eyes of the Beast" - player can move pet freely
  * Code style cleanup

  * Update commit comment

Closes #8398, #7455
2012-12-07 22:13:57 -05:00
Vincent-Michael
5fae5b59ce Core/Reputation: Fix engrish magic number :/ (thx Shauren) 2012-12-04 16:48:57 +01:00
Vincent-Michael
c90ec469db Core/Reputation:
- Fix copy and paste fail (thx zorix)
- Add new field for monthly rate quests
2012-12-04 15:58:57 +01:00