Commit Graph

286 Commits

Author SHA1 Message Date
n0n4m3
304f59f2bb [8667] Correctly respawn pooled object in case the same object is selected for respawn
[8701] Fixes and inprovements in pool system. thx Frankir

--HG--
branch : trunk
2009-12-18 06:54:49 +01:00
n0n4m3
40255a660b Some fixes for GameObject, Chat, Creature, update DuelHandler for 322a
--HG--
branch : trunk
2009-12-17 11:06:50 +01:00
spp
bf595a0fe3 Fix a crash in creature respawn, closes #566
--HG--
branch : trunk
2009-12-06 16:41:05 +01:00
maximius
2582fa289c *Fix the insane ghoul/vehicle power regen, by MetaphysicalDrama, closes #108
--HG--
branch : trunk
2009-11-17 23:56:54 -08:00
maximius
b257a28fa9 *Cleanup, fix many cases of unoptimized loops, potential crashes, excessively large data types, unnecessary or wrong casts, non-standardized function calls, and so on..
*Proper Maexxna Web Spray locations (old locations sent players flying into the air)

--HG--
branch : trunk
2009-11-01 17:53:07 -08:00
maximius
52bab5854f *Fix a crash in Object.h
*Fix action button saving
*Fix a crash on item swap in guild bank
*Fix exploit moving after death in Unit.cpp
*Fix assert fail at grid load in Creature.cpp
Thanks Sisif for these! :)

--HG--
branch : trunk
2009-10-31 02:14:25 -07:00
maximius
f4d76b8216 *Implement new LootMode system, and add some basic support in boss_sartharion.cpp. Requires database support.
--HG--
branch : trunk
2009-10-28 16:31:19 -07:00
maximius
19ea9b8de4 *Disregard visibility state when evaluating a potential target.
--HG--
branch : trunk
2009-10-24 14:53:03 -07:00
maximius
431ddb7991 *Minor optimization
--HG--
branch : trunk
2009-10-23 23:29:45 -07:00
maximius
c9cd2f2dbe *Cleanup Creature::_IsTargetAcceptable.
--HG--
branch : trunk
2009-10-23 23:26:04 -07:00
maximius
ecef2642f4 *Use some more standard functions in _IsTargetAcceptable. Should also fix the perma-unattackable boss issue.
--HG--
branch : trunk
2009-10-23 20:01:15 -07:00
maximius
2a7ca1c87e *Ignore unattackables, they are not suitable attackers or victims.
--HG--
branch : trunk
2009-10-22 02:19:30 -07:00
maximius
3f338cc1c3 *Massive cleanup redux.
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius
e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius
26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
maximius
832159de12 *If my target is attacking me, my target is acceptable.
--HG--
branch : trunk
2009-10-13 22:05:40 -07:00
maximius
e490c33725 *Some cleanup, change some illogical conditions (if you can attack your target is no reason to ignore the target, o_O)
--HG--
branch : trunk
2009-10-13 19:48:35 -07:00
maximius
7a9f0a970f *Ignore react states in Creature::_IsTargetAcceptable.
--HG--
branch : trunk
2009-10-10 23:08:44 -07:00
maximius
ebe28e2870 *Having to cast this seems silly to me. Oh well, farewell, const-ness!
--HG--
branch : trunk
2009-10-10 17:09:52 -07:00
maximius
8ea2639b62 *Creature::_IsTargetAcceptable rewrite, should hopefully fix the bugs ogeraisi reported.
*Creature health regen patch, written and tested by Gyullo.

--HG--
branch : trunk
2009-10-10 16:26:00 -07:00
maximius
b4c7a2514d *Blackfathom Deeps - Event: Aku'mai, by Tartalo
*Split Personality Achivement, by Destalker
*Halls of Lightning Fixes, by Destalker
    Volkhan fixes + Achievement
    Ionar Fix - without this he resets each time he is invisible, spamming sparks
    Arcing Burn - should be a debuff (and stackable, stackable part NYI :/)
*Naxxramas - Thaddius - the aura shall affect only the character without the proper aura, by Trazom
*Naxxramas - Kelthuzad - some timer adjustments (may need verification or tweaking) by Cass
*Merges by Stryker, thanks to all authors and testers.
[8458] Re-implement SPELL_AURA_MOD_TARGET_ARMOR_PCT in more porper way for weapon dependent cases. Author: VladimirMangos
[8459] Avoid mutiply apply weapon dependent armor penetration bonus for each weapon. Author: VladimirMangos
[8529] check rune cost only if spell has PowerType == POWER_RUNE. Patch provided by yavi. Author: Ambal
[8532] Fixed situation where some items like 42947 were not giving spell power bonus. By: Ambal
[8533] Not remove timed quest and correctly fail when time runs out. Add function to remove timed quest instead of direct access to set. Author: NoFantasy
[8536] Fixed spell 62776. By: Ambal
[8539] Check pet aura range at area aura update. By: Ambal
[8546] Implement battleground bonusweekends call to arms. Also fix typo in auctionmgr. Author: balrok
[8547] Implemented scriptcall: CorpseRemoved(uint32 & /*respawnDelay*/) it will be called when the corpse of the scripted creature get's removed, it's possible to adjust the next respawn inside the script. Author: balrok
[8561] Replace another auras code call by explicit code
[8566] avoid singleton-lock when accessing BattleGroundMGR::isBGWeekend() Proposed by vladimir. Comitter: balrok

--HG--
branch : trunk
2009-10-09 20:48:55 -07:00
Machiavelli
c7ca414af8 * Prevent totems from having random models.
--HG--
branch : trunk
2009-10-06 00:16:55 +02:00
maximius
693251497a *Friends shouldn't fight friends, even if that means you have to watch your friends kill each other.
--HG--
branch : trunk
2009-09-29 22:05:49 -07:00
maximius
d5d56bc62b *Whoops, typo (creature_template_addon, not creature_addon)
--HG--
branch : trunk
2009-09-29 20:40:40 -07:00
maximius
1b168c6c9f *Add some error output for improper moveflags on flying creatures.
--HG--
branch : trunk
2009-09-29 20:39:25 -07:00
maximius
4b79217bef *Passive targets under attack by players are not ideal targets for hostile creatures, so avoid them.
--HG--
branch : trunk
2009-09-29 15:13:46 -07:00
maximius
21f08bff8e *Fix a crash in boss_svala.cpp + fix build
--HG--
branch : trunk
2009-09-29 01:36:01 -07:00
maximius
aa5e2d3b28 *The enemy of my enemy is my friend.
*Correct some reversed parameter ordering (team and vehId were swapped)

--HG--
branch : trunk
2009-09-29 01:16:08 -07:00
maximius
15dbc456bb *If our target of choice is attacking a player, only attack our target if we are friendly towards that player.
*Only regenerate quickly if polymorphed.

--HG--
branch : trunk
2009-09-27 19:11:52 -07:00
maximius
01be5d1860 *Do not regenerate the health of controlled or charmed creatures instantly out of combat
--HG--
branch : trunk
2009-09-27 15:48:30 -07:00
maximius
fd55684873 *Better method for choosing a random model on respawn (should no longer show opposite faction models)
*Attempt to make it so creatures: don't help players or units controlled or owned by players; and don't help if the unit is fleeing from the enemy player

--HG--
branch : trunk
2009-09-27 15:14:25 -07:00
maximius
f980dd9ac6 *Merge [8524] New cell search algorithm implemented. You can now choose different
visibility distances on continents, in BG/Arenas and instances. Author: Ambal
*Some warning cleanup

--HG--
branch : trunk
2009-09-27 02:24:25 -07:00
maximius
342b071d47 *Instead of checking getVictim() to determine whether or not to regen health, check if the threat list is empty
*Fix some incorrect/missing scriptname assignments, thanks Drahy

--HG--
branch : trunk
2009-09-26 21:55:47 -07:00
maximius
07084713d1 *Some better checks.. don't want to try and store a Unit* in a bool!
--HG--
branch : trunk
2009-09-26 17:16:17 -07:00
maximius
f8155b4f95 *Should fix a crash, thanks Drahy
--HG--
branch : trunk
2009-09-26 17:08:37 -07:00
maximius
7396b641ae *Gundrak: GO Handling & Slad Ran script by Tartalo
*Cleanup, and don't consider creatures to be in combat if they have no victim, or if their victim is a GM.

--HG--
branch : trunk
2009-09-26 16:01:30 -07:00
maximius
9dfaa02895 *Remove some redundant code, and relocate some illogical code.
--HG--
branch : trunk
2009-09-26 12:54:12 -07:00
maximius
3416a6543d *Wintergrasp: Tenacity fixes by Spp
*Better Windows signal handling for services, by defacer
*Always hide triggers for players, by ogeraisi

--HG--
branch : trunk
2009-09-26 12:41:46 -07:00
maximius
2853aa1cd1 *Grobbulus - in Inject event, tank is not a target for this spell, by Gyullo
*Gundrak - AI for the boss Moorabi, by Manuel
*Improvements to player death handling (they will now fall to the ground).. also attempted to improve creature death handling the same way.

--HG--
branch : trunk
2009-09-25 19:20:04 -07:00
Chaz Brown
0febe02227 Fix HandleNpcAddCommand with bad creature ID - patch by SPP
--HG--
branch : trunk
2009-09-25 17:31:37 +02:00
maximius
c3e795e7dd *Add a new modelid function..
*Attempt to fix some Linux compile issues..

--HG--
branch : trunk
2009-09-24 11:26:27 -07:00
maximius
8ccf471bcb *Force creatures to choose a new, random model on spawn/respawn
*Change the damage formula to include weapon min/max damage.. previous method did not work properly at all.

--HG--
branch : trunk
2009-09-23 22:09:20 -07:00
maximius
a9086ea15a *Another regen tweak, by Taliesin.
--HG--
branch : trunk
2009-09-22 16:18:01 -07:00
maximius
c339f2df7b *Force non-dead mobs that are either: out of combat, or polymorphed, to regenerate at each update, thanks Gyullo
--HG--
branch : trunk
2009-09-21 20:50:05 -07:00
Kudlaty
b4cd005f03 Reapply patch about changing modelid_a/h(2) values to modelid1..4, display ids are no longer incorrectly chosen based on player faction.
--HG--
branch : trunk
2009-09-21 07:52:16 +02:00
maximius
0cf75ef9ea *Wintergrasp: Prevent defenders team to click the relic. Patch by Spp.
*Zum'Rah Area Trigger Script, Zum'Rah should become hostile when approached. By totoro.
*Judgement of Light PPM based, not 100%. By Drevi.
*Fix Deflection Exploit. By manuel, thanks to TheNecromancer and Gyullo.
*Correct Wintergrasp Tenacity formulas, by Gyullo.
*A Spirit Guide Escort Quest, code from SD2, patch by manuel.
*TrullyOne/MeanMachine Waypoint System Restored. Patch by XTElite1.

--HG--
branch : trunk
2009-09-19 12:13:08 -07:00
maximius
333f1c9d72 *[8475] fixed some gcc-warnings Author: balrok
*[8476] Revert some recent cleanup changes, some other fixes and cleanups. Author: VladimirMangos
*[8489] Fixed player visibility update in case view point different from player itself. Author: SilverIce
*[8493] Avoid unexpected multiply error messages at wrong `quest_template`.`RewSpell*` Author: VladimirMangos
*[8496] Resolve some #include cycles and unsafe code.
* Common.h -> Threading.h -> Errors.h -> Common.h
* Remove reduncdent #include "ByteBuffer.h" in headers
* Remove redundent #include "Auth/BigNumber.h" in headers
* Avoid multyply data copy at use some now dropped functions in BigNumber.
* Avoid copy fixed byte count from byte arrays with unknown real size created from BigNumber.
* Avoid possible problems for build mangos at different platform or compilers. Author: VladimirMangos.
*[8501] Apply code style and cleanups to some Player functions. Author: VladimirMangos.
*[8502] Disable quests related to specific game events at startup if event not active. Also rename member boolean variable. Author: NoFantasy
*[8506] Add check for IsAutoComplete() in SendPreparedQuest().
For cases where quest is repeatable but has Method!=0, QuestDetails must be sent instead of RequestItems.
Some additional code cleanup. Author: NoFantasy
*[8507] Check amount of spawned pools before decrement to avoid unexpected result. Also rename variable to more meaningful name. Signed-off-by: NoFantasy <nofantasy@nf.no>

Thanks to Stryker and onkelz28!

--HG--
branch : trunk
2009-09-18 14:10:37 -07:00
maximius
140ec674a0 Backed out changeset d3fe2d6d504a (please test your patches thoroughly before getting me to push them ogeraisi)
--HG--
branch : trunk
2009-09-14 16:49:23 -07:00
maximius
b37f9b1e55 *Merged MaNGOS [8458], [8475], [8476] by ogeraisi, thanks to all authors :)
--HG--
branch : trunk
2009-09-14 16:02:13 -07:00
maximius
0d8ea7cd97 *Some GUID cleanup, don't want any Linux crashes ;) (thanks Zor)
--HG--
branch : trunk
2009-09-09 10:30:14 -07:00