Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/mangos/mangos
Browse files Browse the repository at this point in the history
Conflicts:
	src/game/SpellEffects.cpp
  • Loading branch information
rsa committed Apr 25, 2011
2 parents 66c8b41 + 3eb739a commit 6df6746
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 17 deletions.
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# Lineendings
*.sln eol=crlf
*.vcproj eol=crlf
*.vcxproj* eol=crlf

# Whitespace rules
# strict (no trailing, no tabs)
*.cpp whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol
*.h whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol

# normal (no trailing)
*.sql whitespace=trailing-space,space-before-tab,cr-at-eol
*.txt whitespace=trailing-space,space-before-tab,cr-at-eol

# special files which must ignore whitespace
*.patch whitespace=-trailing-space
1 change: 1 addition & 0 deletions sql/characters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ CREATE TABLE `auction` (
`itemowner` int(11) unsigned NOT NULL default '0',
`buyoutprice` int(11) NOT NULL default '0',
`time` bigint(40) NOT NULL default '0',
`moneyTime` bigint(40) NOT NULL default '0',
`buyguid` int(11) unsigned NOT NULL default '0',
`lastbid` int(11) NOT NULL default '0',
`startbid` int(11) NOT NULL default '0',
Expand Down
37 changes: 21 additions & 16 deletions src/game/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6763,22 +6763,6 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
unitTarget->CastSpell(unitTarget, roll_chance_i(50) ? 24714 : 24715, true);
return;
}
case 26275: // PX-238 Winter Wondervolt TRAP
{
uint32 spells[4] = { 26272, 26157, 26273, 26274 };

// check presence
for(int j = 0; j < 4; ++j)
if (unitTarget->HasAura(spells[j], EFFECT_INDEX_0))
return;

// select spell
uint32 iTmpSpellId = spells[urand(0,3)];

// cast
unitTarget->CastSpell(unitTarget, iTmpSpellId, true);
return;
}
case 25140: // Orb teleport spells
case 25143:
case 25650:
Expand Down Expand Up @@ -6827,6 +6811,19 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
m_caster->CastSpell(unitTarget, spells[urand(0, 2)], true);
return;
}
case 26275: // PX-238 Winter Wondervolt TRAP
{
uint32 spells[4] = {26272, 26157, 26273, 26274};

// check presence
for(int j = 0; j < 4; ++j)
if(unitTarget->HasAura(spells[j], EFFECT_INDEX_0))
return;

// cast
unitTarget->CastSpell(unitTarget, spells[urand(0,3)], true);
return;
}
case 26465: // Mercurial Shield - need remove one 26464 Mercurial Shield aura
unitTarget->RemoveAuraHolderFromStack(26464);
return;
Expand Down Expand Up @@ -6902,6 +6899,14 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
unitTarget->RemoveAurasAtMechanicImmunity(IMMUNE_TO_ROOT_AND_SNARE_MASK,30918,true);
break;
}
case 38358: // Tidal Surge
{
if (!unitTarget)
return;

unitTarget->CastSpell(unitTarget, 38353, true, NULL, NULL, m_caster->GetObjectGuid());
return;
}
case 39681: // Summon Goblin Tonk
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11391"
#define REVISION_NR "11395"
#endif // __REVISION_NR_H__

0 comments on commit 6df6746

Please sign in to comment.