v0.0.1-Alpha (#42)
This commit is contained in:
parent
d30f93c454
commit
a36796c2c1
3552 changed files with 2476 additions and 15223 deletions
34
Projects/Scripts/Engines/Ethics/Hero/Powers/HolyShield.cs
Normal file
34
Projects/Scripts/Engines/Ethics/Hero/Powers/HolyShield.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using Server.Network;
|
||||
|
||||
namespace Server.Ethics.Hero
|
||||
{
|
||||
public sealed class HolyShield : Power
|
||||
{
|
||||
public HolyShield()
|
||||
{
|
||||
m_Definition = new PowerDefinition(
|
||||
20,
|
||||
"Holy Shield",
|
||||
"Erstok K'blac",
|
||||
""
|
||||
);
|
||||
}
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
if (from.IsShielded)
|
||||
{
|
||||
from.Mobile.LocalOverheadMessage(MessageType.Regular, 0x3B2, false,
|
||||
"You are already under the protection of a holy shield.");
|
||||
return;
|
||||
}
|
||||
|
||||
from.BeginShield();
|
||||
|
||||
from.Mobile.LocalOverheadMessage(MessageType.Regular, 0x3B2, false,
|
||||
"You are now under the protection of a holy shield.");
|
||||
|
||||
FinishInvoke(from);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue